pub enum Origin {
BuiltIn,
Configuration,
UserPolicy,
MachinePolicy,
}Expand description
Where a layer came from, in order of authority.
Machine policy wins over user policy, which wins over the user’s own configuration, which wins over what this build ships.
Variants§
BuiltIn
What this build ships when nothing else says otherwise.
Configuration
The user’s own settings. The only layer Layer::user_may_extend gates.
UserPolicy
Policy applied to this user, and administered rather than chosen.
MachinePolicy
Policy applied to this machine. Nothing overrides it.
Implementations§
Trait Implementations§
impl Copy for Origin
Source§impl Display for Origin
The name a person knows a layer by, which is the vocabulary concept 10 uses
and the vocabulary the shipped policy file and the manual page use with it.
impl Display for Origin
The name a person knows a layer by, which is the vocabulary concept 10 uses and the vocabulary the shipped policy file and the manual page use with it.
impl Eq for Origin
Source§impl Ord for Origin
impl Ord for Origin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Origin
impl PartialOrd for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.