pub struct ActorMeshRef<A: RemoteActor> { /* private fields */ }
Expand description
Types references to Actor Meshes.
Implementations§
Source§impl<A: RemoteActor> ActorMeshRef<A>
impl<A: RemoteActor> ActorMeshRef<A>
Sourcepub fn attest(
mesh_id: ActorMeshId,
root: Shape,
comm_actor_ref: ActorRef<CommActor>,
) -> Self
pub fn attest( mesh_id: ActorMeshId, root: Shape, comm_actor_ref: ActorRef<CommActor>, ) -> Self
The caller guarantees that the provided mesh ID is also a valid, typed reference. This is usually invoked to provide a guarantee that an externally-provided mesh ID (e.g., through a command line argument) is a valid reference.
Sourcepub fn mesh_id(&self) -> &ActorMeshId
pub fn mesh_id(&self) -> &ActorMeshId
The Actor Mesh ID corresponding with this reference.
Sourcepub fn cast<M>(
&self,
caps: &(impl CanSend + CanOpenPort),
selection: Selection,
message: M,
) -> Result<(), CastError>
pub fn cast<M>( &self, caps: &(impl CanSend + CanOpenPort), selection: Selection, message: M, ) -> Result<(), CastError>
Cast an [M
]-typed message to the ranks selected by sel
in this ActorMesh.
pub fn select<R: Into<Range>>( &self, label: &str, range: R, ) -> Result<Self, ShapeError>
pub fn new_with_shape(&self, new_shape: Shape) -> Result<Self>
Trait Implementations§
Source§impl<A: RemoteActor> Clone for ActorMeshRef<A>
impl<A: RemoteActor> Clone for ActorMeshRef<A>
Source§impl<A: Debug + RemoteActor> Debug for ActorMeshRef<A>
impl<A: Debug + RemoteActor> Debug for ActorMeshRef<A>
Source§impl<'de, A: RemoteActor> Deserialize<'de> for ActorMeshRef<A>
impl<'de, A: RemoteActor> Deserialize<'de> for ActorMeshRef<A>
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<A: PartialEq + RemoteActor> PartialEq for ActorMeshRef<A>
impl<A: PartialEq + RemoteActor> PartialEq for ActorMeshRef<A>
Source§impl<A: RemoteActor> Serialize for ActorMeshRef<A>
impl<A: RemoteActor> Serialize for ActorMeshRef<A>
impl<A: RemoteActor> StructuralPartialEq for ActorMeshRef<A>
Auto Trait Implementations§
impl<A> Freeze for ActorMeshRef<A>
impl<A> RefUnwindSafe for ActorMeshRef<A>where
A: RefUnwindSafe,
impl<A> Send for ActorMeshRef<A>
impl<A> Sync for ActorMeshRef<A>
impl<A> Unpin for ActorMeshRef<A>where
A: Unpin,
impl<A> UnwindSafe for ActorMeshRef<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