#[non_exhaustive]pub struct Inherit {
pub items: bool,
pub containers: bool,
pub no_propagate: bool,
pub inherit_only: bool,
}Expand description
How an entry passes to what an item contains, in Windows’ terms (NFSv4 uses the same
four flags): items is OBJECT_INHERIT, containers CONTAINER_INHERIT, no_propagate
NO_PROPAGATE_INHERIT and inherit_only INHERIT_ONLY. In MostSpecific mode,
containers is Proxmox’s propagate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.items: boolPasses to items (leaves) inside.
containers: boolPasses to containers inside, and on through them.
no_propagate: boolPasses one level only: the copy carries no inheritance of its own.
inherit_only: boolDoes not apply to the item that holds it, only to what inherits it.
Implementations§
Source§impl Inherit
impl Inherit
Sourcepub const fn new(items: bool, containers: bool) -> Self
pub const fn new(items: bool, containers: bool) -> Self
Passing to items, containers, both or neither.
Sourcepub const fn no_propagate(self) -> Self
pub const fn no_propagate(self) -> Self
The same, passing one level only.
Sourcepub const fn inherit_only(self) -> Self
pub const fn inherit_only(self) -> Self
The same, not applying to the item that holds it.
Trait Implementations§
impl Copy for Inherit
Source§impl Describe for Inherit
impl Describe for Inherit
impl Eq for Inherit
impl Fields for Inherit
impl StructuralPartialEq for Inherit
Auto Trait Implementations§
impl Freeze for Inherit
impl RefUnwindSafe for Inherit
impl Send for Inherit
impl Sync for Inherit
impl Unpin for Inherit
impl UnsafeUnpin for Inherit
impl UnwindSafe for Inherit
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