GroupMessage

Trait GroupMessage 

Source
pub trait GroupMessage<ID, OP, DGM>
where DGM: GroupMembership<ID, OP>,
{ // Required methods fn id(&self) -> OP; fn sender(&self) -> ID; fn content(&self) -> GroupMessageContent<ID>; fn direct_messages(&self) -> Vec<DirectMessage<ID, OP, DGM>>; }
Expand description

Interface to express required information from messages following the “data encryption” protocol for groups.

Applications implementing these traits should authenticate the original sender of each message.

Messages, except of the direct ones, need to be broadcast to the whole group.

Required Methods§

Source

fn id(&self) -> OP

Unique identifier of this message.

Source

fn sender(&self) -> ID

Unique identifier of the sender of this message.

Source

fn content(&self) -> GroupMessageContent<ID>

Returns content of either a control- or application message.

Source

fn direct_messages(&self) -> Vec<DirectMessage<ID, OP, DGM>>

Returns optional list of direct messages.

Implementors§