pub struct GuestEnvironment<'a, 'b> {
pub guest_binary: GuestBinary<'a>,
pub init_data: Option<GuestBlob<'b>>,
}
Expand description
A GuestEnvironment
is a structure that contains the guest binary and an optional GuestBinary.
Fields§
§guest_binary: GuestBinary<'a>
The guest binary, which can be a file path or a buffer.
init_data: Option<GuestBlob<'b>>
An optional guest blob, which can be used to provide additional data to the guest.
Implementations§
Source§impl<'a, 'b> GuestEnvironment<'a, 'b>
impl<'a, 'b> GuestEnvironment<'a, 'b>
Sourcepub fn new(guest_binary: GuestBinary<'a>, init_data: Option<&'b [u8]>) -> Self
pub fn new(guest_binary: GuestBinary<'a>, init_data: Option<&'b [u8]>) -> Self
Creates a new GuestEnvironment
with the given guest binary and an optional guest blob.
Trait Implementations§
Source§impl<'a, 'b> Debug for GuestEnvironment<'a, 'b>
impl<'a, 'b> Debug for GuestEnvironment<'a, 'b>
Source§impl<'a> From<GuestBinary<'a>> for GuestEnvironment<'a, '_>
impl<'a> From<GuestBinary<'a>> for GuestEnvironment<'a, '_>
Source§fn from(guest_binary: GuestBinary<'a>) -> Self
fn from(guest_binary: GuestBinary<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, 'b> Freeze for GuestEnvironment<'a, 'b>
impl<'a, 'b> RefUnwindSafe for GuestEnvironment<'a, 'b>
impl<'a, 'b> Send for GuestEnvironment<'a, 'b>
impl<'a, 'b> Sync for GuestEnvironment<'a, 'b>
impl<'a, 'b> Unpin for GuestEnvironment<'a, 'b>
impl<'a, 'b> UnwindSafe for GuestEnvironment<'a, 'b>
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