Enum btlib::crypto::WritecapAuthzErr
source · pub enum WritecapAuthzErr {
UnauthorizedPath,
Expired,
NotChained,
RootDoesNotOwnPath,
Serde(String),
ChainTooLong(usize),
}
Expand description
The types of errors which can occur when verifying a writecap chain is authorized to write to a given path.
Variants§
The chain is not valid for use on the given path.
Expired
At least one writecap in the chain is expired.
NotChained
The given writecaps do not actually form a chain.
RootDoesNotOwnPath
The principal the root writecap was issued to does not own the given path.
Serde(String)
An error occurred while serializing a writecap.
ChainTooLong(usize)
The write cap chain was too long to be validated. The value contained in this error is the maximum allowed length.
Trait Implementations§
source§impl Debug for WritecapAuthzErr
impl Debug for WritecapAuthzErr
source§impl Display for WritecapAuthzErr
impl Display for WritecapAuthzErr
source§impl PartialEq<WritecapAuthzErr> for WritecapAuthzErr
impl PartialEq<WritecapAuthzErr> for WritecapAuthzErr
source§fn eq(&self, other: &WritecapAuthzErr) -> bool
fn eq(&self, other: &WritecapAuthzErr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WritecapAuthzErr
impl StructuralEq for WritecapAuthzErr
impl StructuralPartialEq for WritecapAuthzErr
Auto Trait Implementations§
impl RefUnwindSafe for WritecapAuthzErr
impl Send for WritecapAuthzErr
impl Sync for WritecapAuthzErr
impl Unpin for WritecapAuthzErr
impl UnwindSafe for WritecapAuthzErr
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