pub struct PrekeyBundle {
pub identity: PublicKeyBytes,
pub prekey: SignedPrekey,
}Expand description
What an initiator needs to start a session with a user
Fields§
§identity: PublicKeyBytesThe user’s FN-DSA identity public key. Check it against a copy you trust (for example by comparing it in person) before relying on it.
prekey: SignedPrekeyA one-time prekey if one was left, otherwise the user’s last-resort prekey
Auto Trait Implementations§
impl Freeze for PrekeyBundle
impl RefUnwindSafe for PrekeyBundle
impl Send for PrekeyBundle
impl Sync for PrekeyBundle
impl Unpin for PrekeyBundle
impl UnsafeUnpin for PrekeyBundle
impl UnwindSafe for PrekeyBundle
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