pub struct DecryptedMessage {
pub app_msg: Option<Vec<u8>>,
pub is_active: bool,
pub delay: Option<u64>,
pub sender_client_id: Option<ClientId>,
pub identity: WireIdentity,
pub buffered_messages: Option<Vec<BufferedDecryptedMessage>>,
}Expand description
Represents the potential items a consumer might require after passing us an encrypted message we have decrypted for him
Fields§
§app_msg: Option<Vec<u8>>Decrypted text message
is_active: boolIs the conversation still active after receiving this commit aka has the user been removed from the group
delay: Option<u64>Delay time in seconds to feed caller timer for committing
sender_client_id: Option<ClientId>ClientId of the sender of the message being decrypted. Only present for application messages.
identity: WireIdentityIdentity claims present in the sender credential
Present for all messages
buffered_messages: Option<Vec<BufferedDecryptedMessage>>Only set when the decrypted message is a commit.
Contains buffered messages for next epoch which were received before the commit creating the epoch because the DS did not fan them out in order.
Trait Implementations§
Source§impl Debug for DecryptedMessage
impl Debug for DecryptedMessage
Source§impl From<DecryptedMessage> for BufferedDecryptedMessage
impl From<DecryptedMessage> for BufferedDecryptedMessage
Source§fn from(from: DecryptedMessage) -> Self
fn from(from: DecryptedMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecryptedMessage
impl RefUnwindSafe for DecryptedMessage
impl Send for DecryptedMessage
impl Sync for DecryptedMessage
impl Unpin for DecryptedMessage
impl UnsafeUnpin for DecryptedMessage
impl UnwindSafe for DecryptedMessage
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