#[non_exhaustive]pub enum VirtualSockOpt {
NoDelay,
KeepAlive(TcpKeepalive),
}Expand description
A limited set of socket options that can be set on a VirtualSocket.
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.
NoDelay
KeepAlive(TcpKeepalive)
Trait Implementations§
Source§impl Clone for VirtualSockOpt
impl Clone for VirtualSockOpt
Source§fn clone(&self) -> VirtualSockOpt
fn clone(&self) -> VirtualSockOpt
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VirtualSockOpt
impl RefUnwindSafe for VirtualSockOpt
impl Send for VirtualSockOpt
impl Sync for VirtualSockOpt
impl Unpin for VirtualSockOpt
impl UnwindSafe for VirtualSockOpt
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