pub struct VhostBackendReqConnection {
shared: Arc<Mutex<VhostBackendReqConnectionShared>>,
shmid: Option<u8>,
}Expand description
Keeps track of Vhost user backend request connection.
Fields§
§shmid: Option<u8>Implementations§
Source§impl VhostBackendReqConnection
impl VhostBackendReqConnection
fn new(conn: FrontendClient, shmid: Option<u8>) -> Self
Sourcefn send_config_changed(&self) -> Result<()>
fn send_config_changed(&self) -> Result<()>
Send VHOST_USER_CONFIG_CHANGE_MSG to the frontend
Sourcepub fn shmem_mapper(&self) -> Option<Box<dyn SharedMemoryMapper>>
pub fn shmem_mapper(&self) -> Option<Box<dyn SharedMemoryMapper>>
Create a SharedMemoryMapper trait object using this backend request connection.
Trait Implementations§
Source§impl Clone for VhostBackendReqConnection
impl Clone for VhostBackendReqConnection
Source§fn clone(&self) -> VhostBackendReqConnection
fn clone(&self) -> VhostBackendReqConnection
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 moreAuto Trait Implementations§
impl Freeze for VhostBackendReqConnection
impl RefUnwindSafe for VhostBackendReqConnection
impl Send for VhostBackendReqConnection
impl Sync for VhostBackendReqConnection
impl Unpin for VhostBackendReqConnection
impl UnwindSafe for VhostBackendReqConnection
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