pub struct UnidentifiedSenderMessageContent { /* private fields */ }Implementations§
Source§impl UnidentifiedSenderMessageContent
impl UnidentifiedSenderMessageContent
pub fn deserialize(data: &[u8]) -> Result<Self>
pub fn new( msg_type: CiphertextMessageType, sender: SenderCertificate, contents: Vec<u8>, content_hint: ContentHint, group_id: Option<Vec<u8>>, ) -> Result<Self>
pub fn msg_type(&self) -> Result<CiphertextMessageType>
pub fn sender(&self) -> Result<&SenderCertificate>
pub fn contents(&self) -> Result<&[u8]>
pub fn content_hint(&self) -> Result<ContentHint>
pub fn group_id(&self) -> Result<Option<&[u8]>>
pub fn serialized(&self) -> Result<&[u8]>
Auto Trait Implementations§
impl Freeze for UnidentifiedSenderMessageContent
impl RefUnwindSafe for UnidentifiedSenderMessageContent
impl Send for UnidentifiedSenderMessageContent
impl Sync for UnidentifiedSenderMessageContent
impl Unpin for UnidentifiedSenderMessageContent
impl UnsafeUnpin for UnidentifiedSenderMessageContent
impl UnwindSafe for UnidentifiedSenderMessageContent
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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