pub enum TrustError {
Widens {
dimension: Dimension,
parent: Level,
requested: Level,
},
EffectNotPermitted {
effect: String,
dimension: Dimension,
required: Level,
granted: Level,
},
NetHostNotAllowed {
host: String,
allowed: usize,
},
NetUnscoped,
}Expand description
Why a requested grant was refused. The runtime contract is refuse, don’t downgrade (design doc §7.5): when a child manifest asks for more than its parent allows we return this error rather than silently clamping.
Variants§
Trait Implementations§
Source§impl Clone for TrustError
impl Clone for TrustError
Source§fn clone(&self) -> TrustError
fn clone(&self) -> TrustError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustError
impl Debug for TrustError
Source§impl Display for TrustError
impl Display for TrustError
impl Eq for TrustError
Source§impl Error for TrustError
impl Error for TrustError
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 TrustError
impl PartialEq for TrustError
Source§fn eq(&self, other: &TrustError) -> bool
fn eq(&self, other: &TrustError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrustError
Auto Trait Implementations§
impl Freeze for TrustError
impl RefUnwindSafe for TrustError
impl Send for TrustError
impl Sync for TrustError
impl Unpin for TrustError
impl UnsafeUnpin for TrustError
impl UnwindSafe for TrustError
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§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.