Struct message_io::node::NodeTask[][src]

pub struct NodeTask { /* fields omitted */ }
Expand description

Entity used to ensure the lifetime of NodeListener::for_each_async() call. The node will process events asynchronously while this entity lives. The destruction of this entity will block until the task is finished. If you want to “unblock” the thread that drops this entity call to NodeHandler::stop() before or from another thread.

Implementations

Block the current thread until the task finalizes. Similar to call drop(node_task) but more verbose and without take the ownership. To finalize the task call NodeHandler::stop(). Calling wait() over an already finished task do not block.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.