[][src]Struct quix::process::Process

pub struct Process<A: Actor<Context = Self>> { /* fields omitted */ }

A special execution context. In this context the actor has a stable identity, whuch should not change. It can also receive messages from remote nodes.

Implementations

impl<A: Actor<Context = Self>> Process<A> where
    A: ProcessDispatch
[src]

pub fn start(a: A) -> Pid<A>[src]

Start a new process

pub fn start_with(f: impl FnOnce(&mut Self) -> A) -> Pid<A>[src]

Start a new process, with the ability to manipiulate its context before actual startup

pub fn pid(&self) -> Pid<A>[src]

Get Pid of current process

Trait Implementations

impl<A: Actor<Context = Self>> ActorContext for Process<A>[src]

impl<A: Actor<Context = Self>> AsyncContext<A> for Process<A>[src]

impl<A: Actor<Context = Self>> AsyncContextParts<A> for Process<A>[src]

impl<A: Actor<Context = Self>, M: Message> ToEnvelope<A, M> for Process<A> where
    A: Handler<M>,
    M: Send + 'static,
    M::Result: Send
[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Process<A>

impl<A> !Send for Process<A>

impl<A> !Sync for Process<A>

impl<A> Unpin for Process<A>

impl<A> !UnwindSafe for Process<A>

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.

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