pub struct PskKey<'a> { /* private fields */ }
Expand description
A pre-shared DTLS key.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PskKey<'a>
impl<'a> RefUnwindSafe for PskKey<'a>
impl<'a> Send for PskKey<'a>
impl<'a> Sync for PskKey<'a>
impl<'a> Unpin for PskKey<'a>
impl<'a> UnwindSafe for PskKey<'a>
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
Source§impl<'a, T> ClientPskHintKeyProvider<'a> for T
impl<'a, T> ClientPskHintKeyProvider<'a> for T
Source§fn key_for_identity_hint(
&self,
identity_hint: Option<&[u8]>,
_session: &CoapClientSession<'_>,
) -> Option<PskKey<'a>>
fn key_for_identity_hint( &self, identity_hint: Option<&[u8]>, _session: &CoapClientSession<'_>, ) -> Option<PskKey<'a>>
Returns the key if the supplied identity_hint
is None
or the key’s identity matches the
hint.