pub trait TaskAddr {
// Required methods
fn close(&self);
fn close_future(&self) -> Notified<'_>;
fn state(&self) -> State;
fn id(&self) -> ActorId;
// Provided method
fn is_closed(&self) -> bool { ... }
}
Expand description
A restricted interface of TaskActor
that provides closing and state reads.
Required Methods§
Sourcefn close_future(&self) -> Notified<'_>
fn close_future(&self) -> Notified<'_>
Returns this task actor’s close future.