pub enum GrantEnvelopeV2CodecError {
EqualKeys,
FieldTooLong {
field: &'static str,
max: usize,
},
TooManyRights {
max: usize,
},
InvalidDomain,
InvalidFormatVersion(u8),
InvalidRoleLabel(&'static str),
Truncated(&'static str),
InvalidUtf8(&'static str),
TrailingBytes(usize),
}Expand description
A fail-closed GrantEnvelope v2 canonical-payload codec error.
Variants§
EqualKeys
FieldTooLong
TooManyRights
InvalidDomain
InvalidFormatVersion(u8)
InvalidRoleLabel(&'static str)
Truncated(&'static str)
InvalidUtf8(&'static str)
TrailingBytes(usize)
Trait Implementations§
Source§impl Clone for GrantEnvelopeV2CodecError
impl Clone for GrantEnvelopeV2CodecError
Source§fn clone(&self) -> GrantEnvelopeV2CodecError
fn clone(&self) -> GrantEnvelopeV2CodecError
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 GrantEnvelopeV2CodecError
impl Debug for GrantEnvelopeV2CodecError
Source§impl Display for GrantEnvelopeV2CodecError
impl Display for GrantEnvelopeV2CodecError
impl Eq for GrantEnvelopeV2CodecError
Source§impl Error for GrantEnvelopeV2CodecError
impl Error for GrantEnvelopeV2CodecError
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()
impl StructuralPartialEq for GrantEnvelopeV2CodecError
Auto Trait Implementations§
impl Freeze for GrantEnvelopeV2CodecError
impl RefUnwindSafe for GrantEnvelopeV2CodecError
impl Send for GrantEnvelopeV2CodecError
impl Sync for GrantEnvelopeV2CodecError
impl Unpin for GrantEnvelopeV2CodecError
impl UnsafeUnpin for GrantEnvelopeV2CodecError
impl UnwindSafe for GrantEnvelopeV2CodecError
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