pub enum TrustPolicyError {
Policy(PolicyError),
CatalogTooLarge {
len: usize,
max: usize,
},
ReservedModelId,
InvalidEnabledFlag {
model_id: u32,
value: u8,
},
}Expand description
Additional trust-boundary validation errors for canonical policy construction.
Variants§
Trait Implementations§
Source§impl Clone for TrustPolicyError
impl Clone for TrustPolicyError
Source§fn clone(&self) -> TrustPolicyError
fn clone(&self) -> TrustPolicyError
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 TrustPolicyError
impl Debug for TrustPolicyError
Source§impl Display for TrustPolicyError
impl Display for TrustPolicyError
impl Eq for TrustPolicyError
Source§impl Error for TrustPolicyError
impl Error for TrustPolicyError
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 From<PolicyError> for TrustPolicyError
impl From<PolicyError> for TrustPolicyError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<TrustPolicyError> for TrustedBuildError
impl From<TrustPolicyError> for TrustedBuildError
Source§fn from(source: TrustPolicyError) -> Self
fn from(source: TrustPolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrustPolicyError
impl PartialEq for TrustPolicyError
impl StructuralPartialEq for TrustPolicyError
Auto Trait Implementations§
impl Freeze for TrustPolicyError
impl RefUnwindSafe for TrustPolicyError
impl Send for TrustPolicyError
impl Sync for TrustPolicyError
impl Unpin for TrustPolicyError
impl UnsafeUnpin for TrustPolicyError
impl UnwindSafe for TrustPolicyError
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.