[][src]Struct thespian::Process

pub struct Process<State, Reply> { /* fields omitted */ }

Process holds the Actor state and sequentially processes calls sent from the Actor.

Implementations

impl<State, Reply> Process<State, Reply> where
    State: Debug
[src]

pub fn new_with_state(state: State) -> (Self, Actor<State, Reply>)[src]

Creates a new (Process, Actor) pair given an initial state.

pub async fn start<'_>(&'_ mut self)[src]

Starts the Process. The corresponding Actor is alive as long as the Process is running.

Auto Trait Implementations

impl<State, Reply> !RefUnwindSafe for Process<State, Reply>[src]

impl<State, Reply> Send for Process<State, Reply> where
    Reply: Send,
    State: Send
[src]

impl<State, Reply> Sync for Process<State, Reply> where
    Reply: Send,
    State: Sync
[src]

impl<State, Reply> Unpin for Process<State, Reply> where
    State: Unpin
[src]

impl<State, Reply> !UnwindSafe for Process<State, Reply>[src]

Blanket Implementations

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

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

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

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

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

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.