pub struct PostTurnOptimizationConfig {
pub facts: MaintenanceTaskPolicy,
pub relationships: MaintenanceTaskPolicy,
pub sessions: MaintenanceTaskPolicy,
pub memory_compression: MaintenanceTaskPolicy,
pub max_background_tasks: usize,
pub on_background_overflow: BackgroundOverflowPolicy,
}Expand description
Post-turn task policies for work that affects later turns.
Fields§
§facts: MaintenanceTaskPolicyFact extraction policy.
relationships: MaintenanceTaskPolicyRelationship update policy.
sessions: MaintenanceTaskPolicySession metadata policy.
memory_compression: MaintenanceTaskPolicyMemory compression policy.
max_background_tasks: usizeMaximum number of queued background tasks.
on_background_overflow: BackgroundOverflowPolicyBehavior when the background queue is full.
Implementations§
Source§impl PostTurnOptimizationConfig
impl PostTurnOptimizationConfig
Sourcepub fn any_background_tasks_enabled(&self) -> bool
pub fn any_background_tasks_enabled(&self) -> bool
Returns true when any maintenance task may run outside the response path.
Trait Implementations§
Source§impl Clone for PostTurnOptimizationConfig
impl Clone for PostTurnOptimizationConfig
Source§fn clone(&self) -> PostTurnOptimizationConfig
fn clone(&self) -> PostTurnOptimizationConfig
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 PostTurnOptimizationConfig
impl Debug for PostTurnOptimizationConfig
Source§impl Default for PostTurnOptimizationConfig
impl Default for PostTurnOptimizationConfig
Source§fn default() -> PostTurnOptimizationConfig
fn default() -> PostTurnOptimizationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostTurnOptimizationConfigwhere
PostTurnOptimizationConfig: Default,
impl<'de> Deserialize<'de> for PostTurnOptimizationConfigwhere
PostTurnOptimizationConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PostTurnOptimizationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PostTurnOptimizationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PostTurnOptimizationConfig
impl Serialize for PostTurnOptimizationConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PostTurnOptimizationConfig
impl RefUnwindSafe for PostTurnOptimizationConfig
impl Send for PostTurnOptimizationConfig
impl Sync for PostTurnOptimizationConfig
impl Unpin for PostTurnOptimizationConfig
impl UnsafeUnpin for PostTurnOptimizationConfig
impl UnwindSafe for PostTurnOptimizationConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.