pub struct VhostVsock { /* private fields */ }Implementations§
Source§impl VhostVsock
impl VhostVsock
pub fn new( param: VhostVsockParam, name: impl Into<Arc<str>>, ) -> Result<VhostVsock, Error>
Trait Implementations§
Source§impl Debug for VhostVsock
impl Debug for VhostVsock
Source§impl Drop for VhostVsock
impl Drop for VhostVsock
Source§impl Virtio for VhostVsock
impl Virtio for VhostVsock
type Config = VsockConfig
type Feature = VsockFeature
fn id(&self) -> DeviceId
fn name(&self) -> &str
fn num_queues(&self) -> u16
fn config(&self) -> Arc<VsockConfig>
fn feature(&self) -> u128
fn ioeventfd_offloaded(&self, q_index: u16) -> Result<bool, Error>
fn mem_update_callback(&self) -> Option<Box<dyn LayoutUpdated>>
fn spawn_worker<S, E>( self, event_rx: Receiver<WakeEvent<S, E>>, memory: Arc<RamBus>, queue_regs: Arc<[QueueReg]>, ) -> Result<(JoinHandle<()>, Arc<Notifier>), Error>
fn mem_change_callback(&self) -> Option<Box<dyn LayoutChanged>>
fn set_vu_channel(&mut self, _channel: Arc<VuChannel>)
Source§impl VirtioMio for VhostVsock
impl VirtioMio for VhostVsock
fn activate<'m, Q, S, E>( &mut self, feature: u128, active_mio: &mut ActiveMio<'_, '_, 'm, Q, S, E>, ) -> Result<(), Error>
fn reset(&mut self, registry: &Registry)
fn handle_event<'a, 'm, Q, S, E>( &mut self, event: &Event, _active_mio: &mut ActiveMio<'_, '_, 'm, Q, S, E>, ) -> Result<(), Error>
fn handle_queue<'m, Q, S, E>( &mut self, index: u16, _active_mio: &mut ActiveMio<'_, '_, 'm, Q, S, E>, ) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for VhostVsock
impl RefUnwindSafe for VhostVsock
impl Send for VhostVsock
impl Sync for VhostVsock
impl Unpin for VhostVsock
impl UnsafeUnpin for VhostVsock
impl UnwindSafe for VhostVsock
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