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
The connection was closed.
Fields
§
reason: DisconnectReasonThe reason for the disconnection.
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 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 moreSource§impl Debug for VsockEventType
impl Debug for VsockEventType
Source§impl PartialEq for VsockEventType
impl PartialEq for VsockEventType
impl Eq for VsockEventType
impl StructuralPartialEq for VsockEventType
Auto Trait Implementations§
impl Freeze for VsockEventType
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