pub struct NodeTask { /* private fields */ }
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.
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.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
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.