[−][src]Struct kompact::prelude::DynActorRef
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]
I: Into<NetMessage>,
Send a network message to the target actor
Trait Implementations
impl Clone for DynActorRef
[src]
fn clone(&self) -> DynActorRef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DynActorRef
[src]
impl Display for DynActorRef
[src]
impl PartialEq<DynActorRef> for DynActorRef
[src]
fn eq(&self, other: &DynActorRef) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl RoutingPolicy<DynActorRef, NetMessage> for RoundRobinRouting
[src]
fn route(
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
[src]
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
fn boxed_clone(
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
[src]
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
fn broadcast(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
fn select(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
impl<H: BuildHasher + Clone + Send + Sync + 'static> RoutingPolicy<DynActorRef, NetMessage> for SenderHashBucketRouting<H>
[src]
fn route(
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
[src]
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
fn boxed_clone(
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
[src]
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
fn broadcast(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
fn select(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
impl RoutingPolicy<DynActorRef, NetMessage> for BroadcastRouting
[src]
fn route(
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
[src]
&self,
members: &[&DynActorRef],
msg: NetMessage,
logger: &KompactLogger
)
fn boxed_clone(
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
[src]
&self
) -> Box<dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync>
fn broadcast(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
fn select(
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
[src]
&self
) -> Option<&(dyn RoutingPolicy<DynActorRef, NetMessage> + Send + Sync)>
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.
fn poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn start_send(self: Pin<&mut Self>, item: NetMessage) -> Result<(), Self::Error>
[src]
fn poll_flush(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
fn poll_close(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
Auto Trait Implementations
impl !RefUnwindSafe for DynActorRef
impl Send for DynActorRef
impl Sync for DynActorRef
impl Unpin for DynActorRef
impl !UnwindSafe for DynActorRef
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> Erased for 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, Item> SinkExt<Item> for T where
T: Sink<Item> + ?Sized,
[src]
T: Sink<Item> + ?Sized,
fn with<U, Fut, F, E>(self, f: F) -> With<Self, Item, U, Fut, F> where
E: From<Self::Error>,
F: FnMut(U) -> Fut,
Fut: Future<Output = Result<Item, E>>,
[src]
E: From<Self::Error>,
F: FnMut(U) -> Fut,
Fut: Future<Output = Result<Item, E>>,
fn with_flat_map<U, St, F>(self, f: F) -> WithFlatMap<Self, Item, U, St, F> where
F: FnMut(U) -> St,
St: Stream<Item = Result<Item, Self::Error>>,
[src]
F: FnMut(U) -> St,
St: Stream<Item = Result<Item, Self::Error>>,
fn sink_map_err<E, F>(self, f: F) -> SinkMapErr<Self, F> where
F: FnOnce(Self::Error) -> E,
[src]
F: FnOnce(Self::Error) -> E,
fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E> where
Self::Error: Into<E>,
[src]
Self::Error: Into<E>,
fn buffer(self, capacity: usize) -> Buffer<Self, Item>
[src]
fn close(&mut self) -> Close<'_, Self, Item> where
Self: Unpin,
[src]
Self: Unpin,
fn fanout<Si>(self, other: Si) -> Fanout<Self, Si> where
Item: Clone,
Si: Sink<Item, Error = Self::Error>,
[src]
Item: Clone,
Si: Sink<Item, Error = Self::Error>,
fn flush(&mut self) -> Flush<'_, Self, Item> where
Self: Unpin,
[src]
Self: Unpin,
fn send(&mut self, item: Item) -> Send<'_, Self, Item> where
Self: Unpin,
[src]
Self: Unpin,
fn send_all<St>(&'a mut self, stream: &'a mut St) -> SendAll<'a, Self, St> where
Self: Unpin,
St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized,
[src]
Self: Unpin,
St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized,
fn left_sink<Si2>(self) -> Either<Self, Si2> where
Si2: Sink<Item, Error = Self::Error>,
[src]
Si2: Sink<Item, Error = Self::Error>,
fn right_sink<Si1>(self) -> Either<Si1, Self> where
Si1: Sink<Item, Error = Self::Error>,
[src]
Si1: Sink<Item, Error = Self::Error>,
fn poll_ready_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
fn start_send_unpin(&mut self, item: Item) -> Result<(), Self::Error> where
Self: Unpin,
[src]
Self: Unpin,
fn poll_flush_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
fn poll_close_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>> where
Self: Unpin,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,