Skip to main content

MessageExtractor

Trait MessageExtractor 

Source
pub trait MessageExtractor:
    Send
    + Sync
    + 'static {
    type Message: Send + 'static;

    // Required methods
    fn entity_id(&self, message: &Self::Message) -> String;
    fn shard_id(&self, message: &Self::Message) -> String;
}

Required Associated Types§

Source

type Message: Send + 'static

Required Methods§

Source

fn entity_id(&self, message: &Self::Message) -> String

Source

fn shard_id(&self, message: &Self::Message) -> String

Implementors§