pub enum ToolAuditMetadataError {
InvalidEffects,
InvalidResources,
InvalidResource,
Serialization(Error),
ProtocolMetadata(ProtocolMetadataError),
}Expand description
Error returned when validating or encoding tool audit metadata.
Variants§
InvalidEffects
Declared effects are empty or exceed the deterministic bound.
InvalidResources
Redacted resources exceed the deterministic bound.
InvalidResource
One redacted resource is malformed or exceeds its text bound.
Serialization(Error)
Audit serialization unexpectedly failed.
ProtocolMetadata(ProtocolMetadataError)
Audit metadata exceeds protocol metadata constraints.
Trait Implementations§
Source§impl Debug for ToolAuditMetadataError
impl Debug for ToolAuditMetadataError
Source§impl Display for ToolAuditMetadataError
impl Display for ToolAuditMetadataError
Source§impl Error for ToolAuditMetadataError
impl Error for ToolAuditMetadataError
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 !RefUnwindSafe for ToolAuditMetadataError
impl !UnwindSafe for ToolAuditMetadataError
impl Freeze for ToolAuditMetadataError
impl Send for ToolAuditMetadataError
impl Sync for ToolAuditMetadataError
impl Unpin for ToolAuditMetadataError
impl UnsafeUnpin for ToolAuditMetadataError
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