pub struct ProcMeshRef { /* private fields */ }
Expand description
A reference to a ProcMesh, consisting of a set of ranked ProcRef
s,
arranged into a region. ProcMeshes named, uniquely identifying the
ProcMesh from which the reference was derived.
ProcMeshes can be sliced to create new ProcMeshes with a subset of the original ranks.
Implementations§
Source§impl ProcMeshRef
impl ProcMeshRef
Sourcepub async fn status(&self, cx: &impl Actor) -> Result<ValueMesh<bool>>
pub async fn status(&self, cx: &impl Actor) -> Result<ValueMesh<bool>>
The current statuses of procs in this mesh.
Sourcepub async fn actor_states(
&self,
cx: &impl Actor,
name: Name,
) -> Result<ValueMesh<State<ActorState>>>
pub async fn actor_states( &self, cx: &impl Actor, name: Name, ) -> Result<ValueMesh<State<ActorState>>>
The supervision events of procs in this mesh.
Sourcepub async fn spawn<A: Actor + Referable>(
&self,
cx: &impl Actor,
name: &str,
params: &A::Params,
) -> Result<ActorMesh<A>>where
A::Params: RemoteMessage,
pub async fn spawn<A: Actor + Referable>(
&self,
cx: &impl Actor,
name: &str,
params: &A::Params,
) -> Result<ActorMesh<A>>where
A::Params: RemoteMessage,
Spawn an actor on all of the procs in this mesh, returning a new ActorMesh.
Bounds:
A: Actor
- the actor actually runs inside each proc.A: Referable
- so we can return typedActorRef<A>
s inside theActorMesh
.A::Params: RemoteMessage
- spawn parameters must be serializable and routable.
Trait Implementations§
Source§impl Clone for ProcMeshRef
impl Clone for ProcMeshRef
Source§fn clone(&self) -> ProcMeshRef
fn clone(&self) -> ProcMeshRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcMeshRef
impl Debug for ProcMeshRef
Source§impl<'de> Deserialize<'de> for ProcMeshRef
impl<'de> Deserialize<'de> for ProcMeshRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ProcMeshRef
impl Hash for ProcMeshRef
Source§impl Named for ProcMeshRef
impl Named for ProcMeshRef
Source§fn typename() -> &'static str
fn typename() -> &'static str
The globally unique type name for the type.
This should typically be the fully qualified Rust name of the type.
Source§fn typehash() -> u64
fn typehash() -> u64
A globally unique hash for this type.
TODO: actually enforce perfect hashing
Source§fn typeid() -> TypeId
fn typeid() -> TypeId
The TypeId for this type. TypeIds are unique only within a binary,
and should not be used for global identification.
Source§fn port() -> u64
fn port() -> u64
The globally unique port for this type. Typed ports are in the range
of 1<<63..1<<64-1.
Source§impl PartialEq for ProcMeshRef
impl PartialEq for ProcMeshRef
Source§impl Ranked for ProcMeshRef
impl Ranked for ProcMeshRef
Source§impl RankedSliceable for ProcMeshRef
impl RankedSliceable for ProcMeshRef
Source§impl Serialize for ProcMeshRef
impl Serialize for ProcMeshRef
impl Eq for ProcMeshRef
impl StructuralPartialEq for ProcMeshRef
Auto Trait Implementations§
impl Freeze for ProcMeshRef
impl RefUnwindSafe for ProcMeshRef
impl Send for ProcMeshRef
impl Sync for ProcMeshRef
impl Unpin for ProcMeshRef
impl UnwindSafe for ProcMeshRef
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> Checkpointable for Twhere
T: RemoteMessage + Clone,
impl<T> Checkpointable for Twhere
T: RemoteMessage + Clone,
Source§type State = T
type State = T
The type of the state that is saved. The state can be serialized and deserialized
from persistent storage.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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 moreSource§impl<T> MapIntoExt for Twhere
T: Ranked,
impl<T> MapIntoExt for Twhere
T: Ranked,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> QuoteExt for Twhere
T: ?Sized,
impl<T> QuoteExt for Twhere
T: ?Sized,
fn push_quoted<'q, Q, S>(&mut self, _q: Q, s: S)where
Q: QuoteInto<T>,
S: Into<Quotable<'q>>,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
Source§impl<T> View for T
impl<T> View for T
Source§impl<T> ViewExt for Twhere
T: View,
impl<T> ViewExt for Twhere
T: View,
Source§fn range<R>(&self, dim: &str, range: R) -> Result<<T as View>::View, ViewError>
fn range<R>(&self, dim: &str, range: R) -> Result<<T as View>::View, ViewError>
Construct a view comprising the range of points along the provided dimension. Read more
Source§fn group_by(
&self,
dim: &str,
) -> Result<impl Iterator<Item = <T as View>::View>, ViewError>
fn group_by( &self, dim: &str, ) -> Result<impl Iterator<Item = <T as View>::View>, ViewError>
Group by view on
dim
. The returned iterator enumerates all groups
as views in the extent of dim
to the last dimension of the view. Read more