pub struct RoBind {
pub host: PathBuf,
pub sandbox: PathBuf,
}Expand description
A single read-only bind mount. Named-struct rather than a tuple
so the JSON wire format stays readable for non-Rust consumers:
{"host": "/nix/store", "sandbox": "/nix/store"} instead of the
earlier ["/nix/store", "/nix/store"]. The latter was terser but
gave external language bindings no schema hint about which path
was which.
Fields§
§host: PathBufHost-side path. Must exist; bwrap will fail otherwise.
sandbox: PathBufPath inside the sandbox where the host dir/file appears.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoBind
impl<'de> Deserialize<'de> for RoBind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoBind
impl StructuralPartialEq for RoBind
Auto Trait Implementations§
impl Freeze for RoBind
impl RefUnwindSafe for RoBind
impl Send for RoBind
impl Sync for RoBind
impl Unpin for RoBind
impl UnsafeUnpin for RoBind
impl UnwindSafe for RoBind
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