pub struct TaskWaker {
pub waker: Waker,
pub can_exit: bool,
}Fields§
§waker: WakerThe Waker to use to make a task active again.
can_exit: boolWhen a task is scheduled in the future it may be a background task
that will simply run forever in which case it will set can_exit to
true.
Auto Trait Implementations§
impl Freeze for TaskWaker
impl RefUnwindSafe for TaskWaker
impl Send for TaskWaker
impl Sync for TaskWaker
impl Unpin for TaskWaker
impl UnwindSafe for TaskWaker
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