[−][src]Struct meio::address::Address
Address
to send messages to Actor
.
Can be compared each other to identify senders to
the same Actor
.
Implementations
impl<A: Actor> Address<A>
[src]
pub fn attach<S>(&mut self, stream: S) -> JoinHandle<()> where
A: ActionHandler<S::Item>,
S: Stream + Send + Unpin + 'static,
S::Item: Action,
[src]
A: ActionHandler<S::Item>,
S: Stream + Send + Unpin + 'static,
S::Item: Action,
Attaches a Stream
of event to an Actor
.
pub fn action_recipient<I>(&self) -> ActionRecipient<I> where
A: ActionHandler<I>,
I: Action,
[src]
A: ActionHandler<I>,
I: Action,
Generates ActionRecipient
.
pub fn interaction_recipient<I>(&self) -> InteractionRecipient<I> where
A: InteractionHandler<I>,
I: Interaction,
[src]
A: InteractionHandler<I>,
I: Interaction,
Generates InteractionRecipient
.
pub fn controller(&self) -> Controller
[src]
Gives a Controller
of that entity.
Methods from Deref<Target = Controller>
pub fn id(&self) -> Id
[src]
Returns Id
of the controller.
pub fn shutdown(&mut self)
[src]
Start shutdown process for the Actor
.
pub async fn join<'_>(&'_ mut self)
[src]
Waits when the Actor
will be terminated.
Trait Implementations
impl<A, I> ActionPerformer<I> for Address<A> where
A: Actor,
A: ActionHandler<I>,
I: Action,
[src]
A: Actor,
A: ActionHandler<I>,
I: Action,
fn act<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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> Deref for Address<A>
[src]
type Target = Controller
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<A: Actor> DerefMut for Address<A>
[src]
impl<A: Actor> Eq for Address<A>
[src]
impl<A, I> From<Address<A>> for ActionRecipient<I> where
A: Actor,
A: ActionHandler<I>,
I: Action,
[src]
A: Actor,
A: ActionHandler<I>,
I: Action,
impl<A, I> From<Address<A>> for InteractionRecipient<I> where
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
[src]
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
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, I> InteractionPerformer<I> for Address<A> where
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
[src]
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
fn interact<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<A: Actor> Into<Controller> for Address<A>
[src]
fn into(self) -> Controller
[src]
impl<T, A> Link<T> for Address<A> where
T: From<Address<A>>,
A: Actor,
[src]
T: From<Address<A>>,
A: Actor,
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>,