pub struct VsockEvent {
pub source: VsockAddr,
pub destination: VsockAddr,
pub buffer_status: VsockBufferStatus,
pub event_type: VsockEventType,
}
Expand description
An event received from a VirtIO socket device.
Fields§
§source: VsockAddr
The source of the event, i.e. the peer who sent it.
destination: VsockAddr
The destination of the event, i.e. the CID and port on our side.
buffer_status: VsockBufferStatus
The peer’s buffer status for the connection.
event_type: VsockEventType
The type of event.
Implementations§
Source§impl VsockEvent
impl VsockEvent
Sourcepub fn matches_connection(
&self,
connection_info: &ConnectionInfo,
guest_cid: u64,
) -> bool
pub fn matches_connection( &self, connection_info: &ConnectionInfo, guest_cid: u64, ) -> bool
Returns whether the event matches the given connection.
Trait Implementations§
Source§impl Clone for VsockEvent
impl Clone for VsockEvent
Source§fn clone(&self) -> VsockEvent
fn clone(&self) -> VsockEvent
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VsockEvent
impl Debug for VsockEvent
Source§impl PartialEq for VsockEvent
impl PartialEq for VsockEvent
impl Eq for VsockEvent
impl StructuralPartialEq for VsockEvent
Auto Trait Implementations§
impl Freeze for VsockEvent
impl RefUnwindSafe for VsockEvent
impl Send for VsockEvent
impl Sync for VsockEvent
impl Unpin for VsockEvent
impl UnwindSafe for VsockEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)