pub struct PreflightedRoot { /* private fields */ }Expand description
A root that passed the operational preflight.
Holding one is the evidence a caller needs before it creates a directory or
accepts new allocation. It deliberately says whether the directory exists
rather than creating it: 02-target-architecture.md keeps “directory
creation and the narrowly scoped default-root ACL operation” as explicit
application steps after validation passes.
Implementations§
Source§impl PreflightedRoot
impl PreflightedRoot
Sourcepub const fn root(&self) -> &LocalAbsolutePath
pub const fn root(&self) -> &LocalAbsolutePath
The configured value, exactly as it is stored and displayed.
Sourcepub fn leaf_to_create(&self) -> Option<&Path>
pub fn leaf_to_create(&self) -> Option<&Path>
The single directory the caller must create, or None when it exists.
Sourcepub const fn filesystem(&self) -> &FilesystemIdentity
pub const fn filesystem(&self) -> &FilesystemIdentity
What the host proved about the volume this root sits on.
Trait Implementations§
Source§impl Clone for PreflightedRoot
impl Clone for PreflightedRoot
Source§fn clone(&self) -> PreflightedRoot
fn clone(&self) -> PreflightedRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreflightedRoot
impl Debug for PreflightedRoot
impl Eq for PreflightedRoot
Source§impl PartialEq for PreflightedRoot
impl PartialEq for PreflightedRoot
impl StructuralPartialEq for PreflightedRoot
Auto Trait Implementations§
impl Freeze for PreflightedRoot
impl RefUnwindSafe for PreflightedRoot
impl Send for PreflightedRoot
impl Sync for PreflightedRoot
impl Unpin for PreflightedRoot
impl UnsafeUnpin for PreflightedRoot
impl UnwindSafe for PreflightedRoot
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