Skip to main content

BusJournal

Trait BusJournal 

pub trait BusJournal {
    // Required method
    fn journal(&self) -> Option<&dyn Journal>;
}
Expand description

Reaches the Journal capability of any bus: bus.journal().

Implemented for every Bus, sized or not (dyn Bus, Arc<dyn Bus>, a concrete bus): what the bus answers for dyn Journal through the typed lookup Bus::capability.

Required Methods§

fn journal(&self) -> Option<&dyn Journal>

The Journal capability of this bus; None when the bus does not offer it.

Implementors§

§

impl<B> BusJournal for B
where B: Bus + ?Sized,