pub struct KernelSnapshotPolicy {
pub max_tokens: u32,
pub max_turns: u32,
pub max_total_tokens: String,
pub max_wall_ms: Option<String>,
}Expand description
JSON-portable scheduler policy. The 64-bit axes use decimal strings so JavaScript hosts do not lose precision while parsing and re-encoding a checkpoint.
Fields§
§max_tokens: u32§max_turns: u32§max_total_tokens: String§max_wall_ms: Option<String>Trait Implementations§
Source§impl Clone for KernelSnapshotPolicy
impl Clone for KernelSnapshotPolicy
Source§fn clone(&self) -> KernelSnapshotPolicy
fn clone(&self) -> KernelSnapshotPolicy
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 KernelSnapshotPolicy
impl Debug for KernelSnapshotPolicy
Source§impl<'de> Deserialize<'de> for KernelSnapshotPolicy
impl<'de> Deserialize<'de> for KernelSnapshotPolicy
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 KernelSnapshotPolicy
Source§impl From<&SchedulerBudget> for KernelSnapshotPolicy
impl From<&SchedulerBudget> for KernelSnapshotPolicy
Source§fn from(policy: &SchedulerBudget) -> Self
fn from(policy: &SchedulerBudget) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KernelSnapshotPolicy
impl PartialEq for KernelSnapshotPolicy
Source§impl Serialize for KernelSnapshotPolicy
impl Serialize for KernelSnapshotPolicy
impl StructuralPartialEq for KernelSnapshotPolicy
Source§impl TryFrom<&KernelSnapshotPolicy> for SchedulerBudget
impl TryFrom<&KernelSnapshotPolicy> for SchedulerBudget
Auto Trait Implementations§
impl Freeze for KernelSnapshotPolicy
impl RefUnwindSafe for KernelSnapshotPolicy
impl Send for KernelSnapshotPolicy
impl Sync for KernelSnapshotPolicy
impl Unpin for KernelSnapshotPolicy
impl UnsafeUnpin for KernelSnapshotPolicy
impl UnwindSafe for KernelSnapshotPolicy
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