Struct rustix::net::SocketType
source · pub struct SocketType(/* private fields */);
Expand description
SOCK_*
constants for use with socket
.
Implementations§
source§impl SocketType
impl SocketType
sourcepub const fn from_raw(raw: RawSocketType) -> Self
pub const fn from_raw(raw: RawSocketType) -> Self
Constructs a SocketType
from a raw integer.
sourcepub const fn as_raw(self) -> RawSocketType
pub const fn as_raw(self) -> RawSocketType
Returns the raw integer for this SocketType
.
Trait Implementations§
source§impl Clone for SocketType
impl Clone for SocketType
source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SocketType
impl Debug for SocketType
source§impl Hash for SocketType
impl Hash for SocketType
source§impl PartialEq for SocketType
impl PartialEq for SocketType
source§fn eq(&self, other: &SocketType) -> bool
fn eq(&self, other: &SocketType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketType
impl Eq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnwindSafe for SocketType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)