pub enum Ownership {
Absent,
Owned,
Foreign,
Unknown,
}Expand description
The canonical ownership classification for a live destination.
Owned is never inferred from an InstallPlan. It is returned only by a
consumer-supplied OwnershipVerifier that proves the destination belongs
to the intended deployment. Foreign and Unknown always fail closed.
Variants§
Absent
No filesystem object exists at the destination.
Owned
The destination provably belongs to this deployment and may be replaced.
Foreign
The destination belongs to another deployment and must not be mutated.
Unknown
Ownership cannot be proven; mutation is denied.
Trait Implementations§
impl Copy for Ownership
impl Eq for Ownership
impl StructuralPartialEq for Ownership
Auto Trait Implementations§
impl Freeze for Ownership
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnsafeUnpin for Ownership
impl UnwindSafe for Ownership
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