pub enum VsockSocketType {
Stream,
Dgram,
}Expand description
Socket semantics for a host-CID vsock route.
Variants§
Stream
Reliable, ordered byte stream.
Dgram
Best-effort message transport preserving datagram boundaries.
Trait Implementations§
Source§impl Clone for VsockSocketType
impl Clone for VsockSocketType
Source§fn clone(&self) -> VsockSocketType
fn clone(&self) -> VsockSocketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VsockSocketType
Source§impl Debug for VsockSocketType
impl Debug for VsockSocketType
Source§impl Default for VsockSocketType
impl Default for VsockSocketType
Source§fn default() -> VsockSocketType
fn default() -> VsockSocketType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VsockSocketType
impl<'de> Deserialize<'de> for VsockSocketType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VsockSocketType
Source§impl Hash for VsockSocketType
impl Hash for VsockSocketType
Source§impl PartialEq for VsockSocketType
impl PartialEq for VsockSocketType
Source§impl Serialize for VsockSocketType
impl Serialize for VsockSocketType
impl StructuralPartialEq for VsockSocketType
Auto Trait Implementations§
impl Freeze for VsockSocketType
impl RefUnwindSafe for VsockSocketType
impl Send for VsockSocketType
impl Sync for VsockSocketType
impl Unpin for VsockSocketType
impl UnsafeUnpin for VsockSocketType
impl UnwindSafe for VsockSocketType
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