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, 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 base_key(&self) -> &PublicKey
pub fn identity_key(&self) -> &IdentityKey
pub fn message(&self) -> &SignalMessage
pub fn serialized(&self) -> &[u8] ⓘ
pub fn into_serialized(self) -> Box<[u8]>
Trait Implementations§
Source§impl AsRef<[u8]> for PreKeySignalMessage
impl AsRef<[u8]> for PreKeySignalMessage
Source§impl Clone for PreKeySignalMessage
impl Clone for PreKeySignalMessage
Source§impl Debug for PreKeySignalMessage
impl Debug for PreKeySignalMessage
Source§impl TryFrom<&[u8]> for PreKeySignalMessage
impl TryFrom<&[u8]> 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 UnsafeUnpin 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§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)