pub enum Violation {
Unenforced {
route: String,
policy: RoutePolicy,
},
UnknownField {
route: String,
field: String,
},
}Expand description
One route declaring something this tier will not do.
Variants§
Unenforced
A known policy, declared, and neither enforced nor delegated.
UnknownField
A route key (or policy sub-key) nothing in this binary implements — either a manifest from a newer build, or a slot reserved for a version this one is not. Refusing is the whole point: a field we cannot even name is the maximally-silent case of the defect, and it is the half that makes the class impossible rather than merely closed today.
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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> 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.