[][src]Struct kompact::prelude::DynActorRef

pub struct DynActorRef { /* fields omitted */ }

A kind of actor reference that only allows network messages to be sent

For local-only dynamically typed actors, consider using type Message = Box<Any>; together with ActorRef<Box<Any>> instead.

Implementations

impl DynActorRef[src]

pub fn can_upgrade_component(&self) -> bool[src]

Attempts to upgrade the contained component, returning true if possible.

This a somewhat weaker equivalent to an is_alive function, in that it doesn't check the lifecycle status of the target component.

pub fn tell<I>(&self, v: I) where
    I: Into<NetMessage>, 
[src]

Send a network message to the target actor

Trait Implementations

impl Clone for DynActorRef[src]

impl Debug for DynActorRef[src]

impl Display for DynActorRef[src]

impl PartialEq<DynActorRef> for DynActorRef[src]

impl RoutingPolicy<DynActorRef, NetMessage> for RoundRobinRouting[src]

impl<H: BuildHasher + Clone + Send + Sync + 'static> RoutingPolicy<DynActorRef, NetMessage> for SenderHashBucketRouting<H>[src]

impl RoutingPolicy<DynActorRef, NetMessage> for BroadcastRouting[src]

impl Sink<NetMessage> for DynActorRef[src]

Helper for forwarding MsgEnvelopes to actor references

type Error = ()

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

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> Erased for T[src]

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

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

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>,