Skip to main content

MonitorableEndpoint

Trait MonitorableEndpoint 

Source
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§

Source

fn monitored_location(&self) -> EndpointLocation

The endpoint location monitored for liveness and delivery progress.

Provided Methods§

Source

fn monitor<C>(&self, cx: &C) -> ActorMonitor
where 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".

Implementations on Foreign Types§

Source§

impl<T> MonitorableEndpoint for &T

Implementors§