pub struct GuestOptionsBuilder { /* private fields */ }
Expand description
Builder for GuestOptions
.
Implementations§
Source§impl GuestOptionsBuilder
impl GuestOptionsBuilder
Sourcepub fn features(&mut self, value: Vec<String>) -> &mut Self
pub fn features(&mut self, value: Vec<String>) -> &mut Self
Features for cargo to build the guest with.
Sourcepub fn use_docker(&mut self, value: DockerOptions) -> &mut Self
pub fn use_docker(&mut self, value: DockerOptions) -> &mut Self
Use a docker environment for building.
Sourcepub fn kernel(&mut self, value: Vec<u8>) -> &mut Self
pub fn kernel(&mut self, value: Vec<u8>) -> &mut Self
Override the default kernel ELF to be used for execution.
Sourcepub fn build(&self) -> Result<GuestOptions, GuestOptionsBuilderError>
pub fn build(&self) -> Result<GuestOptions, GuestOptionsBuilderError>
Trait Implementations§
Source§impl Clone for GuestOptionsBuilder
impl Clone for GuestOptionsBuilder
Source§fn clone(&self) -> GuestOptionsBuilder
fn clone(&self) -> GuestOptionsBuilder
Returns a duplicate 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 Freeze for GuestOptionsBuilder
impl RefUnwindSafe for GuestOptionsBuilder
impl Send for GuestOptionsBuilder
impl Sync for GuestOptionsBuilder
impl Unpin for GuestOptionsBuilder
impl UnwindSafe for GuestOptionsBuilder
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