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.
Implementations§
Auto Trait Implementations§
impl Freeze for NodeTask
impl !RefUnwindSafe for NodeTask
impl Send for NodeTask
impl Sync for NodeTask
impl Unpin for NodeTask
impl !UnwindSafe for NodeTask
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