Struct cros_async::blocking::cancellable_pool::State
source · struct State {
wind_down: WindDownStates,
current_cancellable_id: u64,
cancellables: HashMap<u64, Box<dyn Fn() + Send + 'static>>,
}
Fields§
§wind_down: WindDownStates
§current_cancellable_id: u64
Helps to generate unique id to associate cancel
with task.
cancellables: HashMap<u64, Box<dyn Fn() + Send + 'static>>
A map of all the cancel
routines of queued/in-flight tasks.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for State
impl Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
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