pub struct AddDir {
pub host_path: String,
pub guest_path: String,
pub read_only: bool,
}Expand description
One --add-dir host:guest[:mode] mapping.
The host directory is materialized into a small ext4 image attached as
an extra Firecracker drive, then mounted at guest_path by a wrapper
script before the user’s command runs. When read_only is false
(mode :rw), guest writes land in the ext4 image and are rsynced
back to the host directory after the command exits — see ADR-002.
Fields§
§host_path: String§guest_path: String§read_only: boolImplementations§
Source§impl AddDir
impl AddDir
Sourcepub fn parse(spec: &str) -> Result<Self>
pub fn parse(spec: &str) -> Result<Self>
Parse a host:guest[:mode] spec.
The first colon splits host from guest. An optional trailing
:ro or :rw selects the mount mode (default :ro). Other
trailing tokens that look like a mode (no slash, alphanumeric)
are rejected to catch typos. Guest paths that legitimately
contain colons remain supported as long as the trailing
component is unambiguously path-shaped (contains a slash).
Trait Implementations§
impl Eq for AddDir
impl StructuralPartialEq for AddDir
Auto Trait Implementations§
impl Freeze for AddDir
impl RefUnwindSafe for AddDir
impl Send for AddDir
impl Sync for AddDir
impl Unpin for AddDir
impl UnsafeUnpin for AddDir
impl UnwindSafe for AddDir
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more