[−][src]Struct quix::process::Process
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]
A: ProcessDispatch,
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]
fn address(&self) -> Addr<A>
[src]
fn spawn<F>(&mut self, fut: F) -> SpawnHandle where
F: ActorFuture<Output = (), Actor = A> + 'static,
[src]
F: ActorFuture<Output = (), Actor = A> + 'static,
fn wait<F>(&mut self, fut: F) where
F: ActorFuture<Output = (), Actor = A> + 'static,
[src]
F: ActorFuture<Output = (), Actor = A> + 'static,
fn waiting(&self) -> bool
[src]
fn cancel_future(&mut self, handle: SpawnHandle) -> bool
[src]
fn add_stream<S>(&mut self, fut: S) -> SpawnHandle where
A: StreamHandler<<S as Stream>::Item>,
S: Stream + 'static,
[src]
A: StreamHandler<<S as Stream>::Item>,
S: Stream + 'static,
fn add_message_stream<S>(&mut self, fut: S) where
A: Handler<<S as Stream>::Item>,
S: Stream + 'static,
<S as Stream>::Item: Message,
[src]
A: Handler<<S as Stream>::Item>,
S: Stream + 'static,
<S as Stream>::Item: Message,
fn notify<M>(&mut self, msg: M) where
A: Handler<M>,
M: Message + 'static,
[src]
A: Handler<M>,
M: Message + 'static,
fn notify_later<M>(&mut self, msg: M, after: Duration) -> SpawnHandle where
A: Handler<M>,
M: Message + 'static,
[src]
A: Handler<M>,
M: Message + 'static,
fn run_later<F>(&mut self, dur: Duration, f: F) -> SpawnHandle where
F: FnOnce(&mut A, &mut <A as Actor>::Context) + 'static,
[src]
F: FnOnce(&mut A, &mut <A as Actor>::Context) + 'static,
fn run_interval<F>(&mut self, dur: Duration, f: F) -> SpawnHandle where
F: FnMut(&mut A, &mut <A as Actor>::Context) + 'static,
[src]
F: FnMut(&mut A, &mut <A as Actor>::Context) + 'static,
impl<A: Actor<Context = Self>> AsyncContextParts<A> for Process<A>
[src]
fn parts(&mut self) -> &mut ContextParts<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]
A: Handler<M>,
M: Send + 'static,
M::Result: Send,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,