std::link_monitorActor monitor and link handle helpers.
Import MonitorRef from this module to name the owned registration returned
by monitor(actor) -> Result<MonitorRef, LinkError>. Its consuming close
removes the subscription; ordinary resource cleanup closes it at scope exit.
LinkError is available from the prelude; local and remote monitors share it.
set_partition_policySelect the partition-resolution policy for the current dispatch.
The policy governs how the remote send/ask failure path resolves a
route that is unavailable or suspect (see PartitionPolicy). It is scoped
to the current execution context — the dispatch of one actor message — so a
handler can choose a policy for the remote calls it is about to make.
Returns true when the policy was recorded, false (fail-closed) when
there is no execution context to record it in — i.e. the call was made
outside an actor dispatch, where a partition policy has no meaning.
The tag mapping is exhaustive: every PartitionPolicy variant maps to the
runtime discriminant it mirrors (execution_context.PartitionPolicy). A
new variant is a compile error here until it is mapped, so the surface can
never silently send an unmapped policy.
PartitionPolicyPolicy for resolving actor operations across network partitions.
FailFastReturn Partition immediately when the route is unavailable or suspect.
DeadlineRetry until the caller deadline, then return Timeout or Partition.
MonitorLostResolve monitor and supervision partitions as MonitorLost.
CrashLinkedOpt in to cross-node link and supervision fail-together behavior.
QuarantineStop sending to a suspect or dead peer until a fresh incarnation appears.
MonitorIdStable identifier for one monitor registration.
DownTargetActor identity carried by a DOWN notification.
Local(u64)A process-local actor slot.
Remote(Location)A complete remote actor location.
DownReasonTerminal cause carried by a DOWN notification.
StoppedThe monitored actor completed a graceful stop.
TerminatedThe monitored actor was forcefully terminated.
Crashed(CrashKind)The monitored actor crashed.
MonitorLostThe remote actor became unreachable.
LocalShutdownThe local node shut down before observation completed.
DownNotificationTyped payload delivered to an actor's #[on(down)] hook.
MonitorRefA handle to an active monitor registration.