#[non_exhaustive]pub enum SecurityError {
UntrustedAgent(String),
RevokedAgent(String),
SignatureMismatch(String, String),
DeepDelegation {
url: String,
depth: usize,
limit: usize,
},
InvalidKey(String, String),
SandboxDenied(String),
PayloadTooLarge {
size: usize,
limit: usize,
},
}Expand description
Error raised when a security check fails.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UntrustedAgent(String)
The agent is not in the trust registry at all.
RevokedAgent(String)
The agent was issued a certificate but has since been revoked.
SignatureMismatch(String, String)
The card’s signature did not verify against the expected key.
DeepDelegation
A delegation path exceeds the configured depth limit.
Fields
InvalidKey(String, String)
The key material registered for an agent is unusable.
SandboxDenied(String)
The sandbox denied a requested access.
PayloadTooLarge
A payload exceeded the sandbox’s size limit.
Trait Implementations§
Source§impl Debug for SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
impl Error for SecurityError
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()
Auto Trait Implementations§
impl Freeze for SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl UnwindSafe for SecurityError
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