pub struct WorkIo {
pub call_again: bool,
pub finished: bool,
pub block_on: Option<Pin<Box<dyn Future<Output = ()> + Send>>>,
}
Expand description
Work IO
Communicate between work()
and the runtime.
Fields§
§call_again: bool
Call block immediately again
finished: bool
Mark block as finished
block_on: Option<Pin<Box<dyn Future<Output = ()> + Send>>>
Block on future
The block will be called (1) if somehting happens or (2) if the future resolves
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WorkIo
impl Send for WorkIo
impl !Sync for WorkIo
impl Unpin for WorkIo
impl !UnwindSafe for WorkIo
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