TaskAddr

Trait TaskAddr 

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

Source

fn close(&self)

Sends a close signal to the task actor.

Source

fn close_future(&self) -> Notified<'_>

Returns this task actor’s close future.

Source

fn state(&self) -> State

Returns the state of the task actor.

Source

fn id(&self) -> ActorId

Returns the id of the task actor.

Provided Methods§

Source

fn is_closed(&self) -> bool

Returns if the task actor is closed.

Implementors§