[][src]Struct lifeline::dyn_bus::DynBusStorage

pub struct DynBusStorage<B> { /* fields omitted */ }

Implementations

impl<B: Bus> DynBusStorage<B>[src]

pub fn clone_rx<Msg, Bus>(
    &self
) -> Result<<Msg::Channel as Channel>::Rx, TakeChannelError> where
    Msg: Message<B> + 'static, 
[src]

pub fn clone_tx<Msg, Bus>(
    &self
) -> Result<<Msg::Channel as Channel>::Tx, TakeChannelError> where
    Msg: Message<B> + 'static, 
[src]

pub fn clone_resource<Res>(&self) -> Result<Res, TakeResourceError> where
    Res: Resource<B> + 'static, 
[src]

pub fn store_resource<Res: Send + 'static, Bus>(&self, value: Res)[src]

pub fn store_channel<Msg, Chan, Bus>(
    &self,
    rx: Option<Chan::Rx>,
    tx: Option<Chan::Tx>
) -> Result<(), AlreadyLinkedError> where
    Chan: Channel,
    Msg: 'static, 
[src]

pub fn capacity<Msg>(&self, capacity: usize) -> Result<(), AlreadyLinkedError> where
    Msg: Message<B> + 'static, 
[src]

Trait Implementations

impl<B: Debug> Debug for DynBusStorage<B>[src]

impl<B: Bus> Default for DynBusStorage<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for DynBusStorage<B> where
    B: RefUnwindSafe

impl<B> Send for DynBusStorage<B> where
    B: Send

impl<B> !Sync for DynBusStorage<B>

impl<B> Unpin for DynBusStorage<B> where
    B: Unpin

impl<B> UnwindSafe for DynBusStorage<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<From, To> Traitcast<To> for From where
    From: TraitcastFrom + ?Sized,
    To: 'static + ?Sized
[src]

fn cast_ref(&self) -> Option<&To>[src]

Tries to cast self to a different dynamic trait object. This will always return None if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

fn cast_mut(&mut self) -> Option<&mut To>[src]

Tries to cast the self to a different dynamic trait object. This will always return None if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

fn cast_box(self: Box<From>) -> Result<Box<To>, Box<dyn Any + 'static>>[src]

Tries to cast self to a boxed dynamic trait object. This will always return Err if the implementation of the target trait, for the concrete type of self, has not been registered via traitcast!.

impl<T> TraitcastFrom for T where
    T: 'static, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,