Sha256: 6d5d2aec61a3c1b4a5fef1a8a487dc8e163da8988d1237541ed008baa01128cc

Contents?: true

Size: 1.71 KB

Versions: 15

Compression:

Stored size: 1.71 KB

Contents

use crate::backend::c;
use bitflags::bitflags;

bitflags! {
    /// `MSG_*` flags for use with [`send`], [`send_to`], and related
    /// functions.
    ///
    /// [`send`]: crate::net::send
    /// [`sendto`]: crate::net::sendto
    #[repr(transparent)]
    #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
    pub struct SendFlags: u32 {
        /// `MSG_CONFIRM`
        const CONFIRM = c::MSG_CONFIRM;
        /// `MSG_DONTROUTE`
        const DONTROUTE = c::MSG_DONTROUTE;
        /// `MSG_DONTWAIT`
        const DONTWAIT = c::MSG_DONTWAIT;
        /// `MSG_EOT`
        const EOT = c::MSG_EOR;
        /// `MSG_MORE`
        const MORE = c::MSG_MORE;
        /// `MSG_NOSIGNAL`
        const NOSIGNAL = c::MSG_NOSIGNAL;
        /// `MSG_OOB`
        const OOB = c::MSG_OOB;

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

bitflags! {
    /// `MSG_*` flags for use with [`recv`], [`recvfrom`], and related
    /// functions.
    ///
    /// [`recv`]: crate::net::recv
    /// [`recvfrom`]: crate::net::recvfrom
    #[repr(transparent)]
    #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
    pub struct RecvFlags: u32 {
        /// `MSG_CMSG_CLOEXEC`
        const CMSG_CLOEXEC = c::MSG_CMSG_CLOEXEC;
        /// `MSG_DONTWAIT`
        const DONTWAIT = c::MSG_DONTWAIT;
        /// `MSG_ERRQUEUE`
        const ERRQUEUE = c::MSG_ERRQUEUE;
        /// `MSG_OOB`
        const OOB = c::MSG_OOB;
        /// `MSG_PEEK`
        const PEEK = c::MSG_PEEK;
        /// `MSG_TRUNC`
        const TRUNC = c::MSG_TRUNC;
        /// `MSG_WAITALL`
        const WAITALL = c::MSG_WAITALL;

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/linux_raw/net/send_recv.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/linux_raw/net/send_recv.rs