pub struct ProcessedMessage { /* private fields */ }
Expand description
A message that has passed all syntax and semantics checks.
Implementations§
Source§impl ProcessedMessage
impl ProcessedMessage
Sourcepub fn epoch(&self) -> GroupEpoch
pub fn epoch(&self) -> GroupEpoch
Returns the epoch of the message.
Sourcepub fn content(&self) -> &ProcessedMessageContent
pub fn content(&self) -> &ProcessedMessageContent
Returns the content of the message.
Sourcepub fn into_content(self) -> ProcessedMessageContent
pub fn into_content(self) -> ProcessedMessageContent
Returns the content of the message and consumes the message.
Sourcepub fn credential(&self) -> &Credential
pub fn credential(&self) -> &Credential
Returns the credential of the message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProcessedMessage
impl RefUnwindSafe for ProcessedMessage
impl Send for ProcessedMessage
impl Sync for ProcessedMessage
impl Unpin for ProcessedMessage
impl UnwindSafe for ProcessedMessage
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> 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