pub struct RunOsvBuilder { /* private fields */ }Expand description
A runOsv mutation being assembled — see Client::run_osv.
Implementations§
Source§impl RunOsvBuilder
impl RunOsvBuilder
Sourcepub fn port(self, forward: impl Into<String>) -> Self
pub fn port(self, forward: impl Into<String>) -> Self
Add a host->guest TCP port forward, "HOST:GUEST".
Sourcepub fn forward(self, host: u16, guest: u16) -> Self
pub fn forward(self, host: u16, guest: u16) -> Self
Add a port forward from numbers instead of a string.
Sourcepub fn image(self, image: impl Into<String>) -> Self
pub fn image(self, image: impl Into<String>) -> Self
An aarch64 loader.img, or on x86_64 the loader ELF (required).
Sourcepub fn cmdline(self, cmdline: impl Into<String>) -> Self
pub fn cmdline(self, cmdline: impl Into<String>) -> Self
The application to run and its arguments, e.g. "/hello.so".
Sourcepub fn attach_disk(self, disk: impl Into<String>) -> Self
pub fn attach_disk(self, disk: impl Into<String>) -> Self
Extra disks as virtio-blk, "PATH" or "PATH:ro" (repeatable).
Auto Trait Implementations§
impl Freeze for RunOsvBuilder
impl RefUnwindSafe for RunOsvBuilder
impl Send for RunOsvBuilder
impl Sync for RunOsvBuilder
impl Unpin for RunOsvBuilder
impl UnsafeUnpin for RunOsvBuilder
impl UnwindSafe for RunOsvBuilder
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