pub enum NarrowingError {
Show 13 variants
SchemaVersionMismatch,
WidenedMutatingSessions,
WidenedSnapshotLimit {
baseline: u32,
runtime: u32,
},
WidenedAuditCapacity {
baseline: u64,
runtime: u64,
},
UnknownResource(ResourceId),
ResourceNameMismatch {
id: ResourceId,
baseline: String,
runtime: String,
},
WidenedUnknownReads(ResourceId),
WidenedPoll(ResourceId),
WidenedInterrupt(ResourceId),
ReducedHardDenial {
id: ResourceId,
unconstrained_start: u64,
unconstrained_end: u64,
},
WidenedWritableRegister {
id: ResourceId,
offset: u64,
},
WidenedWritableRegisterMask {
id: ResourceId,
offset: u64,
},
Validation(PolicyValidationError),
}Expand description
Errors when a runtime configuration widens rather than narrows the baseline policy.
Variants§
SchemaVersionMismatch
WidenedMutatingSessions
WidenedSnapshotLimit
WidenedAuditCapacity
UnknownResource(ResourceId)
ResourceNameMismatch
WidenedUnknownReads(ResourceId)
WidenedPoll(ResourceId)
WidenedInterrupt(ResourceId)
ReducedHardDenial
WidenedWritableRegister
WidenedWritableRegisterMask
Validation(PolicyValidationError)
Trait Implementations§
Source§impl Clone for NarrowingError
impl Clone for NarrowingError
Source§impl Debug for NarrowingError
impl Debug for NarrowingError
Source§impl Display for NarrowingError
impl Display for NarrowingError
impl Eq for NarrowingError
Source§impl Error for NarrowingError
impl Error for NarrowingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NarrowingError
impl PartialEq for NarrowingError
impl StructuralPartialEq for NarrowingError
Auto Trait Implementations§
impl Freeze for NarrowingError
impl RefUnwindSafe for NarrowingError
impl Send for NarrowingError
impl Sync for NarrowingError
impl Unpin for NarrowingError
impl UnsafeUnpin for NarrowingError
impl UnwindSafe for NarrowingError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.