Skip to main content

run

Function run 

Source
pub async fn run<B, C, A, Sends, Br>(
    behavior: B,
    mailbox: Consumer<C, B::Msg>,
    from: A,
) -> Result<Transcript<A, Sends, Br::Child>, B::Error>
where A: Address, Sends: SendAlgebra, Br: BirthMode, B: Behavior<Addr = A, Ph = Never, Sends = Sends, Birth = Br>,
Expand description

Drive user-lane messages through a complete behavior protocol.

ยงErrors

Returns the first controlled behavior failure.