pub enum ProcMessage {
Joined(),
State {
ret: OncePortRef<ProcState>,
},
Spawn {
actor_type: String,
actor_name: String,
params_data: Data,
status_port: PortRef<Index>,
},
SpawnProc {
env: Environment,
world_id: WorldId,
proc_ids: Vec<ProcId>,
world_size: usize,
},
UpdateSupervision(),
Stop {
timeout: Duration,
reply_to: OncePortRef<ProcStopResult>,
},
Snapshot {
reply_to: OncePortRef<ProcSnapshot>,
},
LocalAddr {
reply_to: OncePortRef<ChannelAddr>,
},
PySpyDump {
config: PySpyConfig,
reply_to: OncePortRef<StackTrace>,
},
}
Expand description
Proc management messages.
Variants§
Joined()
Indicate that the proc has joined the system. This is sent by the system actor when the proc has been registered and is ready to receive instructions.
State
Retrieve the state of the proc.
Fields
ret: OncePortRef<ProcState>
Used to return the result of the caller.
Spawn
Spawn an actor on the proc to the provided name.
Fields
SpawnProc
Spawn a set of proc actors in the specified world (never its own)
Fields
env: Environment
Spawn the proc locally or in a separate program.
UpdateSupervision()
Self message to trigger a supervision update to the system actor.
Stop
Stop the proc. Returns a pair of counts:
- the number of actors observed to stop;
- the number of proc actors not observed to stop.
There will be at least one actor (the proc-actor itself) that will be not observed to stop. If there is more than one timeouts are indicated.
Fields
reply_to: OncePortRef<ProcStopResult>
Used to return the result to the caller.
Snapshot
Return a snapshot view of this proc. Used for debugging.
Fields
reply_to: OncePortRef<ProcSnapshot>
Used to return the result of the caller.
LocalAddr
Get the proc local addr.
Fields
reply_to: OncePortRef<ChannelAddr>
Used to return the result of the caller.
PySpyDump
Run pyspy on the current proc and return the stack trace.
Fields
config: PySpyConfig
Dump config.
reply_to: OncePortRef<StackTrace>
Used to return the result of the caller.
Trait Implementations§
Source§impl Clone for ProcMessage
impl Clone for ProcMessage
Source§fn clone(&self) -> ProcMessage
fn clone(&self) -> ProcMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProcMessage
impl Debug for ProcMessage
Source§impl<'de> Deserialize<'de> for ProcMessage
impl<'de> Deserialize<'de> for ProcMessage
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>,
Source§impl Handler<ProcMessage> for ProcActor
impl Handler<ProcMessage> for ProcActor
Source§impl Named for ProcMessage
impl Named for ProcMessage
Source§fn typename() -> &'static str
fn typename() -> &'static str
Source§fn typehash() -> u64
fn typehash() -> u64
Source§fn arm(&self) -> Option<&'static str>
fn arm(&self) -> Option<&'static str>
Source§fn typeid() -> TypeId
fn typeid() -> TypeId
Source§impl PartialEq for ProcMessage
impl PartialEq for ProcMessage
Source§impl Serialize for ProcMessage
impl Serialize for ProcMessage
impl RemoteHandles<ProcMessage> for ProcActor
impl StructuralPartialEq for ProcMessage
Auto Trait Implementations§
impl !Freeze for ProcMessage
impl RefUnwindSafe for ProcMessage
impl Send for ProcMessage
impl Sync for ProcMessage
impl Unpin for ProcMessage
impl UnwindSafe for ProcMessage
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
Source§impl<T> Checkpointable for Twhere
T: RemoteMessage + Clone,
impl<T> Checkpointable for Twhere
T: RemoteMessage + Clone,
Source§type State = T
type State = T
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>
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>
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