pub struct ActorMesh<A: Referable> { /* private fields */ }
Expand description
An ActorMesh is a collection of ranked A-typed actors.
Bound note: A: Referable
because the mesh stores/returns
ActorRef<A>
, which is only defined for A: Referable
.
Methods from Deref<Target = ActorMeshRef<A>>§
Sourcepub fn cast<M>(&self, cx: &impl Actor, message: M) -> Result<()>where
A: RemoteHandles<M> + RemoteHandles<IndexedErasedUnbound<M>>,
M: Castable + RemoteMessage + Clone,
pub fn cast<M>(&self, cx: &impl Actor, message: M) -> Result<()>where
A: RemoteHandles<M> + RemoteHandles<IndexedErasedUnbound<M>>,
M: Castable + RemoteMessage + Clone,
Cast a message to all actors in this mesh.
pub async fn actor_states( &self, cx: &impl Actor, ) -> Result<ValueMesh<State<ActorState>>>
Trait Implementations§
Source§impl<A: Referable> Clone for ActorMesh<A>
Manual implementation of Clone because A
doesn’t need to implement Clone
but we still want to be able to clone the ActorMesh.
impl<A: Referable> Clone for ActorMesh<A>
Manual implementation of Clone because A
doesn’t need to implement Clone
but we still want to be able to clone the ActorMesh.
Auto Trait Implementations§
impl<A> !Freeze for ActorMesh<A>
impl<A> RefUnwindSafe for ActorMesh<A>where
A: RefUnwindSafe,
impl<A> Send for ActorMesh<A>
impl<A> Sync for ActorMesh<A>
impl<A> Unpin for ActorMesh<A>where
A: Unpin,
impl<A> UnwindSafe for ActorMesh<A>where
A: UnwindSafe,
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more