pub enum Authority {
Fallback = 0,
Realtime = 1,
Plan = 2,
User = 3,
Guard = 4,
}Expand description
How much authority a reason carries. Larger wins.
Variants§
Fallback = 0
A fallback default.
Realtime = 1
A correction within the plan’s intent.
Plan = 2
The optimiser’s plan.
User = 3
A person’s explicit wish.
Guard = 4
A grid or safety rule. Nothing overrides it.
Trait Implementations§
impl Copy for Authority
impl Eq for Authority
Source§impl Ord for Authority
impl Ord for Authority
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 Authority
impl PartialOrd for Authority
impl StructuralPartialEq for Authority
Auto Trait Implementations§
impl Freeze for Authority
impl RefUnwindSafe for Authority
impl Send for Authority
impl Sync for Authority
impl Unpin for Authority
impl UnsafeUnpin for Authority
impl UnwindSafe for Authority
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