Skip to main content

BusCrossing

Trait BusCrossing 

pub trait BusCrossing {
    // Required method
    fn relay(&self) -> Option<&dyn Relay>;
}
Expand description

Reaches the Relay capability of any bus: bus.relay().

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

Required Methods§

fn relay(&self) -> Option<&dyn Relay>

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

Implementors§

§

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