pub struct Placement { /* private fields */ }Expand description
The volume a resolved guest path lives in: where writes are charged and whether they are allowed at all.
Implementations§
Source§impl Placement
impl Placement
pub fn access(&self) -> Access
pub fn quota(&self) -> Option<&Arc<DiskQuota>>
Sourcepub fn mount_point(&self) -> &str
pub fn mount_point(&self) -> &str
The guest path of the volume’s mount point: / for the root.
Sourcepub fn same_volume(&self, other: &Self) -> bool
pub fn same_volume(&self, other: &Self) -> bool
Whether two placements are the same volume, so a rename between them stays within one directory handle and one size limit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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