#[repr(u8)]pub enum Sock {
Stream = 1,
Dgram = 2,
}
Variants§
Implementations§
Trait Implementations§
Source§impl TryFromPrimitive for Sock
impl TryFromPrimitive for Sock
impl Copy for Sock
impl Eq for Sock
impl StructuralPartialEq for Sock
Auto Trait Implementations§
impl Freeze for Sock
impl RefUnwindSafe for Sock
impl Send for Sock
impl Sync for Sock
impl Unpin for Sock
impl UnwindSafe for Sock
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