pub enum OscoreRecipientError {
NoOscoreContext,
DuplicateId,
NotFound,
Unknown,
}
Variants§
NoOscoreContext
Method is called on a context without appropriate oscore information
DuplicateId
Tried adding duplicate recipient to context
NotFound
Tried removing a recipient that is not associated with the context
Unknown
Unknown error inside of libcoap, adding/removing a recipient failed
Trait Implementations§
Source§impl Clone for OscoreRecipientError
impl Clone for OscoreRecipientError
Source§fn clone(&self) -> OscoreRecipientError
fn clone(&self) -> OscoreRecipientError
Returns a duplicate of the value. Read more
1.0.0 · 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 OscoreRecipientError
impl Debug for OscoreRecipientError
Source§impl Display for OscoreRecipientError
impl Display for OscoreRecipientError
Source§impl Error for OscoreRecipientError
impl Error for OscoreRecipientError
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 OscoreRecipientError
impl PartialEq for OscoreRecipientError
impl Copy for OscoreRecipientError
impl Eq for OscoreRecipientError
impl StructuralPartialEq for OscoreRecipientError
Auto Trait Implementations§
impl Freeze for OscoreRecipientError
impl RefUnwindSafe for OscoreRecipientError
impl Send for OscoreRecipientError
impl Sync for OscoreRecipientError
impl Unpin for OscoreRecipientError
impl UnwindSafe for OscoreRecipientError
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