Enum linux_raw_sys::general::socket_state
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum socket_state {
SS_FREE,
SS_UNCONNECTED,
SS_CONNECTING,
SS_CONNECTED,
SS_DISCONNECTING,
}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.
SS_FREE
SS_UNCONNECTED
SS_CONNECTING
SS_CONNECTED
SS_DISCONNECTING
Trait Implementations
sourceimpl Clone for socket_state
impl Clone for socket_state
sourcefn clone(&self) -> socket_state
fn clone(&self) -> socket_state
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for socket_state
impl Debug for socket_state
sourceimpl Hash for socket_state
impl Hash for socket_state
sourceimpl PartialEq<socket_state> for socket_state
impl PartialEq<socket_state> for socket_state
impl Copy for socket_state
impl Eq for socket_state
impl StructuralEq for socket_state
impl StructuralPartialEq for socket_state
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more