Enum linux_raw_sys::net::socket_state
source · #[non_exhaustive]#[repr(u32)]pub enum socket_state {
SS_FREE = 0,
SS_UNCONNECTED = 1,
SS_CONNECTING = 2,
SS_CONNECTED = 3,
SS_DISCONNECTING = 4,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for socket_state
impl Clone for socket_state
source§fn clone(&self) -> socket_state
fn clone(&self) -> socket_state
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 socket_state
impl Debug for socket_state
source§impl Hash for socket_state
impl Hash for socket_state
source§impl PartialEq for socket_state
impl PartialEq for socket_state
source§fn eq(&self, other: &socket_state) -> bool
fn eq(&self, other: &socket_state) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for socket_state
impl Eq for socket_state
impl StructuralPartialEq for socket_state
Auto Trait Implementations§
impl Freeze for socket_state
impl RefUnwindSafe for socket_state
impl Send for socket_state
impl Sync for socket_state
impl Unpin for socket_state
impl UnwindSafe for socket_state
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
)