Struct async_spin_sleep::Init
source · pub struct Init {
pub schedule_resolution: Duration,
pub collect_garbage_at: usize,
/* private fields */
}
Fields§
§schedule_resolution: Duration
Default scheduling resolution for this driver. Setting this to a lower value may decrease CPU usage of the driver, but may also dangerously increase the chance of missing a wakeup event.
collect_garbage_at: usize
Aborted nodes that are too far from execution may remain in the driver’s memory for a long time. This value specifies the maximum number of aborted nodes that can be stored in the driver’s memory. If this value is exceeded, the driver will collect garbage.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Init
impl Send for Init
impl !Sync for Init
impl Unpin for Init
impl UnwindSafe for Init
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