pub trait MonitorableEndpoint {
// Required method
fn monitored_location(&self) -> EndpointLocation;
// Provided method
fn monitor<C>(&self, cx: &C) -> ActorMonitor
where C: Actor { ... }
}Expand description
An endpoint whose owning actor can be monitored.
Required Methods§
Sourcefn monitored_location(&self) -> EndpointLocation
fn monitored_location(&self) -> EndpointLocation
The endpoint location monitored for liveness and delivery progress.
Provided Methods§
Sourcefn monitor<C>(&self, cx: &C) -> ActorMonitorwhere
C: Actor,
fn monitor<C>(&self, cx: &C) -> ActorMonitorwhere
C: Actor,
Spawn a monitor actor for this endpoint’s owning actor as a child of cx.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".