#[non_exhaustive]pub enum LeanWorkerRestartPolicyClass {
Default,
Custom,
}Expand description
Coarse restart-policy class used in pool session keys.
The pool key records whether a session was opened under the default policy or a caller-selected policy class. It deliberately does not expose every restart-policy knob as key material; memory-aware scheduling and richer policy admission are not part of the session-key contract.
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 LeanWorkerRestartPolicyClass
impl Clone for LeanWorkerRestartPolicyClass
Source§fn clone(&self) -> LeanWorkerRestartPolicyClass
fn clone(&self) -> LeanWorkerRestartPolicyClass
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 moreSource§impl Debug for LeanWorkerRestartPolicyClass
impl Debug for LeanWorkerRestartPolicyClass
Source§impl Ord for LeanWorkerRestartPolicyClass
impl Ord for LeanWorkerRestartPolicyClass
Source§fn cmp(&self, other: &LeanWorkerRestartPolicyClass) -> Ordering
fn cmp(&self, other: &LeanWorkerRestartPolicyClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LeanWorkerRestartPolicyClass
impl PartialEq for LeanWorkerRestartPolicyClass
Source§fn eq(&self, other: &LeanWorkerRestartPolicyClass) -> bool
fn eq(&self, other: &LeanWorkerRestartPolicyClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LeanWorkerRestartPolicyClass
impl PartialOrd for LeanWorkerRestartPolicyClass
impl Copy for LeanWorkerRestartPolicyClass
impl Eq for LeanWorkerRestartPolicyClass
impl StructuralPartialEq for LeanWorkerRestartPolicyClass
Auto Trait Implementations§
impl Freeze for LeanWorkerRestartPolicyClass
impl RefUnwindSafe for LeanWorkerRestartPolicyClass
impl Send for LeanWorkerRestartPolicyClass
impl Sync for LeanWorkerRestartPolicyClass
impl Unpin for LeanWorkerRestartPolicyClass
impl UnsafeUnpin for LeanWorkerRestartPolicyClass
impl UnwindSafe for LeanWorkerRestartPolicyClass
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