pub enum PacketKeyRingError {
CapacityFull {
capacity: usize,
},
DuplicateKey(u32),
MissingKey(u32),
NoSendKey,
KeyNotSendable {
key_id: u32,
state: PacketKeyState,
},
KeyNotAccepted {
key_id: u32,
state: PacketKeyState,
},
}Expand description
Packet key ring policy error.
Variants§
CapacityFull
The configured key metadata capacity is full.
DuplicateKey(u32)
Key id already exists.
MissingKey(u32)
Key id is not known.
NoSendKey
No active, non-expired key can be selected for send.
KeyNotSendable
Key cannot be used for sending.
KeyNotAccepted
Key cannot be accepted for receiving.
Trait Implementations§
Source§impl Clone for PacketKeyRingError
impl Clone for PacketKeyRingError
Source§fn clone(&self) -> PacketKeyRingError
fn clone(&self) -> PacketKeyRingError
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 moreimpl Copy for PacketKeyRingError
Source§impl Debug for PacketKeyRingError
impl Debug for PacketKeyRingError
Source§impl Display for PacketKeyRingError
impl Display for PacketKeyRingError
impl Eq for PacketKeyRingError
Source§impl Error for PacketKeyRingError
impl Error for PacketKeyRingError
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()
Source§impl PartialEq for PacketKeyRingError
impl PartialEq for PacketKeyRingError
impl StructuralPartialEq for PacketKeyRingError
Auto Trait Implementations§
impl Freeze for PacketKeyRingError
impl RefUnwindSafe for PacketKeyRingError
impl Send for PacketKeyRingError
impl Sync for PacketKeyRingError
impl Unpin for PacketKeyRingError
impl UnsafeUnpin for PacketKeyRingError
impl UnwindSafe for PacketKeyRingError
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