pub struct VsockNotifier { /* private fields */ }Expand description
Cloneable wake handle for a custom vsock stream.
Call notify whenever a previously blocked stream read or
write may make progress. libkrun owns the platform event primitive and its
registration with the VMM event loop.
Implementations§
Source§impl VsockNotifier
impl VsockNotifier
Sourcepub fn new() -> Result<VsockNotifier, Error>
pub fn new() -> Result<VsockNotifier, Error>
Create an independent notifier suitable for backend tests or adapters.
libkrun normally constructs the notifier passed to a route backend.
Trait Implementations§
Source§impl Clone for VsockNotifier
impl Clone for VsockNotifier
Source§fn clone(&self) -> VsockNotifier
fn clone(&self) -> VsockNotifier
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 moreAuto Trait Implementations§
impl Freeze for VsockNotifier
impl RefUnwindSafe for VsockNotifier
impl Send for VsockNotifier
impl Sync for VsockNotifier
impl Unpin for VsockNotifier
impl UnsafeUnpin for VsockNotifier
impl UnwindSafe for VsockNotifier
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