#[non_exhaustive]pub enum DrainPolicy {
QueueNextTurn,
SteerBatch,
Immediate,
Ignore,
}Expand description
How the runtime should drain admitted work.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for DrainPolicy
impl Clone for DrainPolicy
Source§fn clone(&self) -> DrainPolicy
fn clone(&self) -> DrainPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DrainPolicy
Source§impl Debug for DrainPolicy
impl Debug for DrainPolicy
Source§impl Default for DrainPolicy
impl Default for DrainPolicy
Source§fn default() -> DrainPolicy
fn default() -> DrainPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DrainPolicy
impl<'de> Deserialize<'de> for DrainPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DrainPolicy
Source§impl From<AdmissionPolicyDrainPolicy> for DrainPolicy
impl From<AdmissionPolicyDrainPolicy> for DrainPolicy
Source§fn from(policy: AdmissionPolicyDrainPolicy) -> Self
fn from(policy: AdmissionPolicyDrainPolicy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DrainPolicy
impl PartialEq for DrainPolicy
Source§fn eq(&self, other: &DrainPolicy) -> bool
fn eq(&self, other: &DrainPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DrainPolicy
impl Serialize for DrainPolicy
impl StructuralPartialEq for DrainPolicy
Auto Trait Implementations§
impl Freeze for DrainPolicy
impl RefUnwindSafe for DrainPolicy
impl Send for DrainPolicy
impl Sync for DrainPolicy
impl Unpin for DrainPolicy
impl UnsafeUnpin for DrainPolicy
impl UnwindSafe for DrainPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.