Struct vmm_vhost::backend_client::VhostUserMemoryContext
source · struct VhostUserMemoryContext {
regions: VhostUserMemoryPayload,
fds: Vec<RawDescriptor>,
}
Expand description
Context object to pass guest memory configuration to BackendClient::set_mem_table().
Fields§
§regions: VhostUserMemoryPayload
§fds: Vec<RawDescriptor>
Implementations§
source§impl VhostUserMemoryContext
impl VhostUserMemoryContext
sourcepub fn append(&mut self, region: &VhostUserMemoryRegion, fd: RawDescriptor)
pub fn append(&mut self, region: &VhostUserMemoryRegion, fd: RawDescriptor)
Append a user memory region and corresponding RawDescriptor into the context object.
Auto Trait Implementations§
impl RefUnwindSafe for VhostUserMemoryContext
impl Send for VhostUserMemoryContext
impl Sync for VhostUserMemoryContext
impl Unpin for VhostUserMemoryContext
impl UnwindSafe for VhostUserMemoryContext
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