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) -> SocketType
impl Copy for SocketType
impl Debug for SocketType
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for SocketType
impl Hash for SocketType
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<SocketType> for SocketType
fn eq(&Self, other: &SocketType) -> bool
fn ne(&Self, other: &SocketType) -> bool
impl StructuralEq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnwindSafe for SocketType
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T