pub struct RemoteWatcher { /* private fields */ }Implementations§
Source§impl RemoteWatcher
impl RemoteWatcher
pub fn new( endpoint_manager: EndpointManager, registry: SerializerRegistry, local_uid: u64, ) -> Arc<Self> ⓘ
Sourcepub async fn watch(
self: &Arc<Self>,
watcher: UntypedActorRef,
watchee: ActorPath,
) -> Result<(), TransportError>
pub async fn watch( self: &Arc<Self>, watcher: UntypedActorRef, watchee: ActorPath, ) -> Result<(), TransportError>
Begin watching watchee. The local watcher receives
SystemMsg::Terminated if the watchee’s host disassociates.
pub async fn unwatch( self: &Arc<Self>, watcher: &UntypedActorRef, watchee: &ActorPath, )
Sourcepub fn check(&self)
pub fn check(&self)
Driven by the periodic supervisor task. Surfaces Terminated for
any actor whose host has gone unavailable.
pub fn watch_count(&self) -> usize
Trait Implementations§
Source§impl Clone for RemoteWatcher
impl Clone for RemoteWatcher
Source§fn clone(&self) -> RemoteWatcher
fn clone(&self) -> RemoteWatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteWatcher
impl !RefUnwindSafe for RemoteWatcher
impl Send for RemoteWatcher
impl Sync for RemoteWatcher
impl Unpin for RemoteWatcher
impl UnsafeUnpin for RemoteWatcher
impl !UnwindSafe for RemoteWatcher
Blanket Implementations§
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