Struct libsignal_protocol::PreKeySignalMessage
source · pub struct PreKeySignalMessage { /* private fields */ }
Implementations§
source§impl PreKeySignalMessage
impl PreKeySignalMessage
pub fn new( message_version: u8, registration_id: u32, pre_key_id: Option<PreKeyId>, signed_pre_key_id: SignedPreKeyId, kyber_payload: Option<KyberPayload>, base_key: PublicKey, identity_key: IdentityKey, message: SignalMessage, ) -> Result<Self>
pub fn message_version(&self) -> u8
pub fn registration_id(&self) -> u32
pub fn pre_key_id(&self) -> Option<PreKeyId>
pub fn signed_pre_key_id(&self) -> SignedPreKeyId
pub fn kyber_pre_key_id(&self) -> Option<KyberPreKeyId>
pub fn kyber_ciphertext(&self) -> Option<&SerializedCiphertext>
pub fn base_key(&self) -> &PublicKey
pub fn identity_key(&self) -> &IdentityKey
pub fn message(&self) -> &SignalMessage
pub fn serialized(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl AsRef<[u8]> for PreKeySignalMessage
impl AsRef<[u8]> for PreKeySignalMessage
source§impl Clone for PreKeySignalMessage
impl Clone for PreKeySignalMessage
source§fn clone(&self) -> PreKeySignalMessage
fn clone(&self) -> PreKeySignalMessage
Returns a copy 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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for T
impl<T> ToHex for T
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)