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 ==.