Enum vm_memory::guest_memory::BackingObject
source · pub enum BackingObject {
Shm(Arc<SharedMemory>),
File(Arc<File>),
}
Expand description
A file-like object backing MemoryRegion
.
Variants§
Trait Implementations§
source§impl AsRawDescriptor for BackingObject
impl AsRawDescriptor for BackingObject
source§fn as_raw_descriptor(&self) -> RawDescriptor
fn as_raw_descriptor(&self) -> RawDescriptor
Returns the underlying raw descriptor. Read more
source§impl Clone for BackingObject
impl Clone for BackingObject
source§fn clone(&self) -> BackingObject
fn clone(&self) -> BackingObject
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 RefUnwindSafe for BackingObject
impl Send for BackingObject
impl Sync for BackingObject
impl Unpin for BackingObject
impl UnwindSafe for BackingObject
Blanket Implementations§
§impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
impl<T> AsRawDescriptors for Twhere
T: AsRawDescriptor,
§fn as_raw_descriptors(&self) -> Vec<i32>
fn as_raw_descriptors(&self) -> Vec<i32>
Returns the underlying raw descriptors. Read more
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