pub struct Psk { /* private fields */ }Expand description
Psk represents an out-of-band pre-shared key.
If two peers already have some mechanism to securely exchange secrets, then they can use Psks to authenticate rather than certificates.
Implementations§
Trait Implementations§
impl Send for Psk
§Safety
Safety: Psk objects can be sent across threads
impl Sync for Psk
§Safety
Safety: There are no methods that mutate the Psk through a shared reference (i.e., no interior mutability is exposed)
Auto Trait Implementations§
impl Freeze for Psk
impl RefUnwindSafe for Psk
impl Unpin for Psk
impl UnsafeUnpin for Psk
impl UnwindSafe for Psk
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