pub struct Volume;Expand description
Mount builders: Volume::bind(host), Volume::named(name).
Implementations§
Source§impl Volume
impl Volume
Sourcepub fn bind(host_path: impl Into<String>) -> VolumeSpec
pub fn bind(host_path: impl Into<String>) -> VolumeSpec
Bind-mount a host path. The target is set by SandboxSpec::volume.
Sourcepub fn named(name: impl Into<String>) -> VolumeSpec
pub fn named(name: impl Into<String>) -> VolumeSpec
Mount a named custom volume (created if missing).
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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