pub struct StoredPsk {
pub category: PskCategory,
pub psk: [u8; 32],
pub server_id: String,
}Expand description
A pre-shared key the host stores for a known server.
Selection after Noise message 1 compares the announced category and key id; a match is only
accepted when server_id equals the one in server/init. The key itself is never formatted or
logged: Debug prints it redacted.
Fields§
§category: PskCategoryCategory the key belongs to.
psk: [u8; 32]The 32-byte key.
server_id: StringStatic public key of the server this key belongs to, as announced in server/init.
Trait Implementations§
impl Eq for StoredPsk
impl StructuralPartialEq for StoredPsk
Auto Trait Implementations§
impl Forget for StoredPsk
impl Freeze for StoredPsk
impl Move for StoredPsk
impl RefUnwindSafe for StoredPsk
impl Send for StoredPsk
impl Sync for StoredPsk
impl Unpin for StoredPsk
impl UnsafeUnpin for StoredPsk
impl UnwindSafe for StoredPsk
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