pub enum AbsentPolicy {
AllowCreate,
DenyCreate,
}Expand description
Authorization to create a destination that is currently Ownership::Absent.
This is distinct from authorization to replace an Ownership::Owned
destination. Replacement of Owned never requires this flag; creation of
Absent always does.
Variants§
AllowCreate
Installing into an absent destination is permitted.
DenyCreate
Only replacement of an already-Owned destination is permitted.
Trait Implementations§
Source§impl Clone for AbsentPolicy
impl Clone for AbsentPolicy
impl Copy for AbsentPolicy
Source§impl Debug for AbsentPolicy
impl Debug for AbsentPolicy
impl Eq for AbsentPolicy
Source§impl PartialEq for AbsentPolicy
impl PartialEq for AbsentPolicy
impl StructuralPartialEq for AbsentPolicy
Auto Trait Implementations§
impl Freeze for AbsentPolicy
impl RefUnwindSafe for AbsentPolicy
impl Send for AbsentPolicy
impl Sync for AbsentPolicy
impl Unpin for AbsentPolicy
impl UnsafeUnpin for AbsentPolicy
impl UnwindSafe for AbsentPolicy
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