pub enum RecurrentStateResumePolicy {
RecomputeOnResume,
SnapshotOnPreempt,
}Expand description
Resume policy for state that has been preempted or evicted.
Variants§
RecomputeOnResume
Rebuild state from request token history before the next decode.
SnapshotOnPreempt
Save and restore backend-specific state bytes during preemption.
Trait Implementations§
Source§impl Clone for RecurrentStateResumePolicy
impl Clone for RecurrentStateResumePolicy
Source§fn clone(&self) -> RecurrentStateResumePolicy
fn clone(&self) -> RecurrentStateResumePolicy
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 RecurrentStateResumePolicy
Source§impl Debug for RecurrentStateResumePolicy
impl Debug for RecurrentStateResumePolicy
Source§impl<'de> Deserialize<'de> for RecurrentStateResumePolicy
impl<'de> Deserialize<'de> for RecurrentStateResumePolicy
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 RecurrentStateResumePolicy
impl StructuralPartialEq for RecurrentStateResumePolicy
Auto Trait Implementations§
impl Freeze for RecurrentStateResumePolicy
impl RefUnwindSafe for RecurrentStateResumePolicy
impl Send for RecurrentStateResumePolicy
impl Sync for RecurrentStateResumePolicy
impl Unpin for RecurrentStateResumePolicy
impl UnsafeUnpin for RecurrentStateResumePolicy
impl UnwindSafe for RecurrentStateResumePolicy
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