pub enum VmArgs {
Reader {
vm_id: u64,
argc: u64,
argv: u64,
},
Vector(Vec<Bytes>),
}
Expand description
When the vm is initialized, arguments are loaded onto the stack. This enum specifies how to locate these arguments.
Variants§
Reader
Represents reading arguments from other vm.
Fields
Vector(Vec<Bytes>)
Represents reading arguments from a vector.
Trait Implementations§
impl Eq for VmArgs
impl StructuralPartialEq for VmArgs
Auto Trait Implementations§
impl Freeze for VmArgs
impl RefUnwindSafe for VmArgs
impl Send for VmArgs
impl Sync for VmArgs
impl Unpin for VmArgs
impl UnwindSafe for VmArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more