Sha256: 4eb0b4cdd0a9b089d1c9f6a25ad1ca97be28a38b7b07a705ec605b773f63f880

Contents?: true

Size: 659 Bytes

Versions: 19

Compression:

Stored size: 659 Bytes

Contents

#[cfg(linux_kernel)]
use crate::backend::c;
#[cfg(linux_kernel)]
use bitflags::bitflags;

#[cfg(linux_kernel)]
bitflags! {
    /// `GRND_*` flags for use with [`getrandom`].
    ///
    /// [`getrandom`]: crate::rand::getrandom
    #[repr(transparent)]
    #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
    pub struct GetRandomFlags: u32 {
        /// `GRND_RANDOM`
        const RANDOM = c::GRND_RANDOM;
        /// `GRND_NONBLOCK`
        const NONBLOCK = c::GRND_NONBLOCK;
        /// `GRND_INSECURE`
        const INSECURE = c::GRND_INSECURE;

        /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
        const _ = !0;
    }
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rustix-0.38.44/src/backend/libc/rand/types.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rustix-0.38.43/src/backend/libc/rand/types.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rustix-0.38.41/src/backend/libc/rand/types.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rustix-0.38.37/src/backend/libc/rand/types.rs
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/rand/types.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/rand/types.rs