Struct rustwide::cmd::SandboxImage
source · pub struct SandboxImage { /* private fields */ }
Expand description
The Docker image used for sandboxing.
Implementations§
source§impl SandboxImage
impl SandboxImage
sourcepub fn local(name: &str) -> Result<Self, CommandError>
pub fn local(name: &str) -> Result<Self, CommandError>
Load a local image present in the host machine.
If the image is not available locally an error will be returned instead.
sourcepub fn remote(name: &str) -> Result<Self, CommandError>
pub fn remote(name: &str) -> Result<Self, CommandError>
Pull an image from its Docker registry.
This will access the network to download the image from the registry. If pulling fails an error will be returned instead.
Auto Trait Implementations§
impl RefUnwindSafe for SandboxImage
impl Send for SandboxImage
impl Sync for SandboxImage
impl Unpin for SandboxImage
impl UnwindSafe for SandboxImage
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