pub struct PreKeyBundle { /* private fields */ }
Expand description
The session state used when sending a message to another user.
Implementations§
Source§impl PreKeyBundle
impl PreKeyBundle
Sourcepub fn builder() -> PreKeyBundleBuilder
pub fn builder() -> PreKeyBundleBuilder
Get a builder struct for the PreKeyBundle
.
Sourcepub fn registration_id(&self) -> u32
pub fn registration_id(&self) -> u32
Get the registration ID.
Sourcepub fn pre_key_id(&self) -> u32
pub fn pre_key_id(&self) -> u32
Get the pre-key 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 signed_pre_key(&self) -> Result<PublicKey, Error>
pub fn signed_pre_key(&self) -> Result<PublicKey, Error>
Get the signed pre-key.
Sourcepub fn identity_key(&self) -> Result<PublicKey, Error>
pub fn identity_key(&self) -> Result<PublicKey, Error>
Get the identity key.
Trait Implementations§
Source§impl Clone for PreKeyBundle
impl Clone for PreKeyBundle
Source§fn clone(&self) -> PreKeyBundle
fn clone(&self) -> PreKeyBundle
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 moreAuto Trait Implementations§
impl Freeze for PreKeyBundle
impl RefUnwindSafe for PreKeyBundle
impl !Send for PreKeyBundle
impl !Sync for PreKeyBundle
impl Unpin 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