Trait sea_streamer_types::Message

source ·
pub trait Message: Send {
    // Required methods
    fn stream_key(&self) -> StreamKey;
    fn shard_id(&self) -> ShardId;
    fn sequence(&self) -> SeqNo;
    fn timestamp(&self) -> Timestamp;
    fn message(&self) -> Payload<'_>;

    // Provided methods
    fn to_owned(&self) -> SharedMessage { ... }
    fn identifier(&self) -> (StreamKey, ShardId, SeqNo) { ... }
}
Expand description

Common interface of messages, to be implemented by all backends.

Required Methods§

source

fn stream_key(&self) -> StreamKey

source

fn shard_id(&self) -> ShardId

source

fn sequence(&self) -> SeqNo

source

fn timestamp(&self) -> Timestamp

source

fn message(&self) -> Payload<'_>

Provided Methods§

Implementors§