[−][src]Struct meio::Address
Address to send messages to Actor.
Can be compared each other to identify senders to
the same Actor.
Methods
impl<A: Actor> Address<A>[src]
pub fn terminate(&mut self)[src]
Terminate the Actor.
pub async fn join<'_>(&'_ mut self) -> Result<(), Error>[src]
Wait for termination of the Actor.
pub async fn action<'_, I>(&'_ mut self, input: I) -> Result<(), Error> where
A: ActionHandler<I>,
I: Action, [src]
A: ActionHandler<I>,
I: Action,
Send Action message to an Actor.
pub async fn interaction<'_, I>(
&'_ mut self,
input: I
) -> Result<I::Output, Error> where
A: InteractionHandler<I>,
I: Interaction, [src]
&'_ mut self,
input: I
) -> Result<I::Output, Error> where
A: InteractionHandler<I>,
I: Interaction,
Send Interaction message to an Actor and wait for the response.
pub async fn terminate_with_timeout<'_>(&'_ mut self)[src]
Terminate actor and wait a timeout for termination.
Trait Implementations
impl<A: Actor> Clone for Address<A>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<A: Actor> Debug for Address<A>[src]
impl<A: Actor> Eq for Address<A>[src]
impl<A: Actor> From<Address<A>> for Wrapper<A>[src]
impl<A: Actor> Hash for Address<A>[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<A: Actor> PartialEq<Address<A>> for Address<A>[src]
Auto Trait Implementations
impl<A> !RefUnwindSafe for Address<A>
impl<A> Send for Address<A>
impl<A> Sync for Address<A>
impl<A> Unpin for Address<A>
impl<A> !UnwindSafe for Address<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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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.
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>,