Enum vm_control::sys::linux::VmMsyncRequest
source · pub enum VmMsyncRequest {
MsyncArena {
slot: MemSlot,
offset: usize,
size: usize,
},
}
Variants§
MsyncArena
Flush the content of a memory mapping to its backing file.
slot
selects the arena (as returned by Vm::add_mmap_arena
).
offset
is the offset of the mapping to sync within the arena.
size
is the size of the mapping to sync within the arena.
Implementations§
source§impl VmMsyncRequest
impl VmMsyncRequest
sourcepub fn execute(&self, vm: &mut impl Vm) -> VmMsyncResponse
pub fn execute(&self, vm: &mut impl Vm) -> VmMsyncResponse
Executes this request on the given Vm.
Arguments
vm
- TheVm
to perform the request on.
This does not return a result, instead encapsulating the success or failure in a
VmMsyncResponse
with the intended purpose of sending the response back over the socket
that received this VmMsyncResponse
.
Trait Implementations§
source§impl Debug for VmMsyncRequest
impl Debug for VmMsyncRequest
source§impl<'de> Deserialize<'de> for VmMsyncRequest
impl<'de> Deserialize<'de> for VmMsyncRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for VmMsyncRequest
impl Send for VmMsyncRequest
impl Sync for VmMsyncRequest
impl Unpin for VmMsyncRequest
impl UnwindSafe for VmMsyncRequest
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.