pub enum OnPoolDropBehavior {
CompletePendingScheduled,
DiscardPendingScheduled,
}
Expand description
Options for what the behavior should be in regards to pending scheduled executions when the pool is dropped.
Variants§
CompletePendingScheduled
Any pending scheduled executions will be run, but periodic actions will not be rescheduled once these have completed.
This is the default behavior.
DiscardPendingScheduled
Don’t run any pending scheduled executions.
Trait Implementations§
source§impl Clone for OnPoolDropBehavior
impl Clone for OnPoolDropBehavior
source§fn clone(&self) -> OnPoolDropBehavior
fn clone(&self) -> OnPoolDropBehavior
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OnPoolDropBehavior
impl Debug for OnPoolDropBehavior
source§impl PartialEq<OnPoolDropBehavior> for OnPoolDropBehavior
impl PartialEq<OnPoolDropBehavior> for OnPoolDropBehavior
source§fn eq(&self, other: &OnPoolDropBehavior) -> bool
fn eq(&self, other: &OnPoolDropBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for OnPoolDropBehavior
impl Eq for OnPoolDropBehavior
impl StructuralEq for OnPoolDropBehavior
impl StructuralPartialEq for OnPoolDropBehavior
Auto Trait Implementations§
impl RefUnwindSafe for OnPoolDropBehavior
impl Send for OnPoolDropBehavior
impl Sync for OnPoolDropBehavior
impl Unpin for OnPoolDropBehavior
impl UnwindSafe for OnPoolDropBehavior
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