pub enum CoapCryptoProviderResponse<T: Debug> {
UseCurrent,
UseNew(T),
Unacceptable,
}
Expand description
Type representing a possible return value of a cryptographic credential provider.
Most functions implemented in CoapCryptoProvider can return one of three possible responses, which are represented by this enum.
Variants§
UseCurrent
The current key (as indicated by a previous callback such as CoapClientCryptoProvider::provide_default_info()) is sufficient and should be used for this session.
UseNew(T)
A new set of cryptographic credentials should be used for this session.
Unacceptable
According to the provided information, the cryptographic material of the peer is unacceptable (=> (D-)TLS Handshake Failure).
Trait Implementations§
Source§impl<T: Clone + Debug> Clone for CoapCryptoProviderResponse<T>
impl<T: Clone + Debug> Clone for CoapCryptoProviderResponse<T>
Source§fn clone(&self) -> CoapCryptoProviderResponse<T>
fn clone(&self) -> CoapCryptoProviderResponse<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: PartialEq + Debug> PartialEq for CoapCryptoProviderResponse<T>
impl<T: PartialEq + Debug> PartialEq for CoapCryptoProviderResponse<T>
Source§fn eq(&self, other: &CoapCryptoProviderResponse<T>) -> bool
fn eq(&self, other: &CoapCryptoProviderResponse<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T: Eq + Debug> Eq for CoapCryptoProviderResponse<T>
impl<T: Debug> StructuralPartialEq for CoapCryptoProviderResponse<T>
Auto Trait Implementations§
impl<T> Freeze for CoapCryptoProviderResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for CoapCryptoProviderResponse<T>where
T: RefUnwindSafe,
impl<T> Send for CoapCryptoProviderResponse<T>where
T: Send,
impl<T> Sync for CoapCryptoProviderResponse<T>where
T: Sync,
impl<T> Unpin for CoapCryptoProviderResponse<T>where
T: Unpin,
impl<T> UnwindSafe for CoapCryptoProviderResponse<T>where
T: UnwindSafe,
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