BusManager

Trait BusManager 

Source
pub trait BusManager<A: BusAddress> {
    type D;

    // Required methods
    fn bus(&self) -> &Bus<A, Self::D>;
    fn bus_mut(&mut self) -> &mut Bus<A, Self::D>;
}
Expand description

Helper trait that can be implemented by types which hold one or more buses.

Required Associated Types§

Source

type D

Type of the objects held by the bus.

Required Methods§

Source

fn bus(&self) -> &Bus<A, Self::D>

Return a reference to the bus.

Source

fn bus_mut(&mut self) -> &mut Bus<A, Self::D>

Return a mutable reference to the bus.

Implementors§