pub enum GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP>,
ORD: ForwardSecureOrdering<ID, OP, DGM>,{
Control(ORD::Message),
Application {
plaintext: Vec<u8>,
message_id: OP,
},
RemovedOurselves,
}
Expand description
Dispatched event after processing a group message.
Variants§
Control(ORD::Message)
Control message for group encryption which should be broadcast to all members of the group.
Application
Decrypted payload of message.
RemovedOurselves
Signal that we’ve been removed from the group.
Trait Implementations§
Source§impl<ID: Clone, OP: Clone, DGM, ORD> Clone for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + Clone,
ORD: ForwardSecureOrdering<ID, OP, DGM> + Clone,
ORD::Message: Clone,
impl<ID: Clone, OP: Clone, DGM, ORD> Clone for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + Clone,
ORD: ForwardSecureOrdering<ID, OP, DGM> + Clone,
ORD::Message: Clone,
Source§fn clone(&self) -> GroupEvent<ID, OP, DGM, ORD>
fn clone(&self) -> GroupEvent<ID, OP, DGM, ORD>
Returns a duplicate 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<ID: Debug, OP: Debug, DGM, ORD> Debug for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + Debug,
ORD: ForwardSecureOrdering<ID, OP, DGM> + Debug,
ORD::Message: Debug,
impl<ID: Debug, OP: Debug, DGM, ORD> Debug for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + Debug,
ORD: ForwardSecureOrdering<ID, OP, DGM> + Debug,
ORD::Message: Debug,
Source§impl<ID: PartialEq, OP: PartialEq, DGM, ORD> PartialEq for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + PartialEq,
ORD: ForwardSecureOrdering<ID, OP, DGM> + PartialEq,
ORD::Message: PartialEq,
impl<ID: PartialEq, OP: PartialEq, DGM, ORD> PartialEq for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + PartialEq,
ORD: ForwardSecureOrdering<ID, OP, DGM> + PartialEq,
ORD::Message: PartialEq,
Source§fn eq(&self, other: &GroupEvent<ID, OP, DGM, ORD>) -> bool
fn eq(&self, other: &GroupEvent<ID, OP, DGM, ORD>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<ID: Eq, OP: Eq, DGM, ORD> Eq for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP> + Eq,
ORD: ForwardSecureOrdering<ID, OP, DGM> + Eq,
ORD::Message: Eq,
impl<ID, OP, DGM, ORD> StructuralPartialEq for GroupEvent<ID, OP, DGM, ORD>where
DGM: AckedGroupMembership<ID, OP>,
ORD: ForwardSecureOrdering<ID, OP, DGM>,
Auto Trait Implementations§
impl<ID, OP, DGM, ORD> Freeze for GroupEvent<ID, OP, DGM, ORD>
impl<ID, OP, DGM, ORD> RefUnwindSafe for GroupEvent<ID, OP, DGM, ORD>
impl<ID, OP, DGM, ORD> Send for GroupEvent<ID, OP, DGM, ORD>
impl<ID, OP, DGM, ORD> Sync for GroupEvent<ID, OP, DGM, ORD>
impl<ID, OP, DGM, ORD> Unpin for GroupEvent<ID, OP, DGM, ORD>
impl<ID, OP, DGM, ORD> UnwindSafe for GroupEvent<ID, OP, DGM, ORD>
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