pub struct PreKeySignalMessage { /* private fields */ }
Expand description
A message containing everything necessary to establish a session.
Implementations§
Source§impl PreKeySignalMessage
impl PreKeySignalMessage
Sourcepub fn message_version(&self) -> u8
pub fn message_version(&self) -> u8
Get the message format version.
Sourcepub fn identity_key(&self) -> PublicKey
pub fn identity_key(&self) -> PublicKey
The sender’s public pre-key.
Sourcepub fn registration_id(&self) -> u32
pub fn registration_id(&self) -> u32
The registration ID for this pre-key.
Sourcepub fn has_pre_key_id(&self) -> bool
pub fn has_pre_key_id(&self) -> bool
Does this message contain a pre-key ID?
Sourcepub fn pre_key_id(&self) -> Option<u32>
pub fn pre_key_id(&self) -> Option<u32>
Get the pre-key’s ID.
Sourcepub fn signed_pre_key_id(&self) -> u32
pub fn signed_pre_key_id(&self) -> u32
Get the signed pre-key ID.
Sourcepub fn signal_message(&self) -> SignalMessage
pub fn signal_message(&self) -> SignalMessage
Get the internal SignalMessage
.
Trait Implementations§
Source§impl Clone for PreKeySignalMessage
impl Clone for PreKeySignalMessage
Source§fn clone(&self) -> PreKeySignalMessage
fn clone(&self) -> PreKeySignalMessage
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 PreKeySignalMessage
impl Debug for PreKeySignalMessage
Source§impl From<PreKeySignalMessage> for CiphertextMessage
impl From<PreKeySignalMessage> for CiphertextMessage
Source§fn from(other: PreKeySignalMessage) -> CiphertextMessage
fn from(other: PreKeySignalMessage) -> CiphertextMessage
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreKeySignalMessage
impl RefUnwindSafe for PreKeySignalMessage
impl !Send for PreKeySignalMessage
impl !Sync for PreKeySignalMessage
impl Unpin for PreKeySignalMessage
impl UnwindSafe for PreKeySignalMessage
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