Trait keri_core::processor::Processor

source ·
pub trait Processor {
    // Required methods
    fn process_notice(&self, notice: &Notice) -> Result<(), Error>;
    fn register_observer(
        &mut self,
        observer: Arc<dyn Notifier + Send + Sync>,
        notifications: &[JustNotification],
    ) -> Result<(), Error>;

    // Provided method
    fn process(&self, msg: &Message) -> Result<(), Error> { ... }
}

Required Methods§

source

fn process_notice(&self, notice: &Notice) -> Result<(), Error>

source

fn register_observer( &mut self, observer: Arc<dyn Notifier + Send + Sync>, notifications: &[JustNotification], ) -> Result<(), Error>

Provided Methods§

source

fn process(&self, msg: &Message) -> Result<(), Error>

Implementors§