Enum virtio_drivers::device::socket::VsockEventType
source · pub enum VsockEventType {
ConnectionRequest,
Connected,
Disconnected {
reason: DisconnectReason,
},
Received {
length: usize,
},
CreditRequest,
CreditUpdate,
}Expand description
Details of the type of an event received from a VirtIO socket.
Variants§
ConnectionRequest
The peer requests to establish a connection with us.
Connected
The connection was successfully established.
Disconnected
Fields
§
reason: DisconnectReasonThe reason for the disconnection.
The connection was closed.
Received
Data was received on the connection.
CreditRequest
The peer requests us to send a credit update.
CreditUpdate
The peer just sent us a credit update with nothing else.
Trait Implementations§
source§impl Clone for VsockEventType
impl Clone for VsockEventType
source§fn clone(&self) -> VsockEventType
fn clone(&self) -> VsockEventType
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 VsockEventType
impl Debug for VsockEventType
source§impl PartialEq<VsockEventType> for VsockEventType
impl PartialEq<VsockEventType> for VsockEventType
source§fn eq(&self, other: &VsockEventType) -> bool
fn eq(&self, other: &VsockEventType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for VsockEventType
impl StructuralEq for VsockEventType
impl StructuralPartialEq for VsockEventType
Auto Trait Implementations§
impl RefUnwindSafe for VsockEventType
impl Send for VsockEventType
impl Sync for VsockEventType
impl Unpin for VsockEventType
impl UnwindSafe for VsockEventType
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