Struct rustix::net::SocketType
#[repr(transparent)]
pub struct SocketType(_);Documentation
SOCK_* constants for use with socket.
Implementations
impl SocketType
const STREAM: Self = _
SOCK_STREAM
const DGRAM: Self = _
SOCK_DGRAM
const SEQPACKET: Self = _
SOCK_SEQPACKET
const RAW: Self = _
SOCK_RAW
const RDM: Self = _
SOCK_RDM
pub const fn from_raw(raw: u32) -> Self
Constructs a SocketType from a raw integer.
pub const fn as_raw(Self) -> u32
Returns the raw integer for this SocketType.
Trait Implementations
impl Clone for SocketType
fn clone(&Self) -> SocketTypeimpl Copy for SocketTypeimpl Debug for SocketType
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for SocketTypeimpl Hash for SocketType
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<SocketType> for SocketType
fn eq(&Self, other: &SocketType) -> boolfn ne(&Self, other: &SocketType) -> boolimpl StructuralEq for SocketTypeimpl StructuralPartialEq for SocketTypeAuto Trait Implementations
impl RefUnwindSafe for SocketTypeimpl Send for SocketTypeimpl Sync for SocketTypeimpl Unpin for SocketTypeimpl UnwindSafe for SocketTypeBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T