pub struct SessionSignedPreKey { /* private fields */ }
Expand description
A signed pre-key.
Implementations§
Source§impl SessionSignedPreKey
impl SessionSignedPreKey
Sourcepub fn new(
id: u32,
timestamp: SystemTime,
key_pair: &KeyPair,
signature: &[u8],
) -> Result<SessionSignedPreKey, Error>
pub fn new( id: u32, timestamp: SystemTime, key_pair: &KeyPair, signature: &[u8], ) -> Result<SessionSignedPreKey, Error>
Create a new SessionSignedPreKey
out of an existing KeyPair
and
its signature.
Sourcepub fn timestamp(&self) -> SystemTime
pub fn timestamp(&self) -> SystemTime
When was this key signed?
Trait Implementations§
Source§impl Clone for SessionSignedPreKey
impl Clone for SessionSignedPreKey
Source§fn clone(&self) -> SessionSignedPreKey
fn clone(&self) -> SessionSignedPreKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionSignedPreKey
impl Debug for SessionSignedPreKey
Source§impl Serializable for SessionSignedPreKey
impl Serializable for SessionSignedPreKey
Auto Trait Implementations§
impl Freeze for SessionSignedPreKey
impl RefUnwindSafe for SessionSignedPreKey
impl !Send for SessionSignedPreKey
impl !Sync for SessionSignedPreKey
impl Unpin for SessionSignedPreKey
impl UnwindSafe for SessionSignedPreKey
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