[][src]Trait lifeline::prelude::CarryInto

pub trait CarryInto<IntoBus: Bus>: Bus + Task + Sized {
    type Lifeline;
    fn carry_into(&self, into: &IntoBus) -> Self::Lifeline;
}

The receprocial of the CarryFrom trait. Implemented for all types on which CarryFrom is implemented.

Associated Types

type Lifeline

The carrier lifeline. When dropped, all spawned tasks are immediately cancelled.

Loading content...

Required methods

fn carry_into(&self, into: &IntoBus) -> Self::Lifeline

Spawns the carrier service, returning the lifeline value.

Loading content...

Implementors

impl<F, I> CarryInto<I> for F where
    I: CarryFrom<F>,
    F: Bus,
    I: Bus
[src]

type Lifeline = <I as CarryFrom<F>>::Lifeline

Loading content...