pub struct Request {
pub path: PathBuf,
pub action: Action,
pub counters: Counters,
pub config_source_sha256: Option<String>,
}Expand description
A separate opt-in native checkpoint request; ordinary check is unchanged.
use dive_runtime::checkpoint::{Action, Counters, Request};
let request = Request {
path: "counter.cp".into(),
action: Action::PauseAfterLevels(2),
counters: Counters::Tlc,
config_source_sha256: None,
};
assert_eq!(request.action, Action::PauseAfterLevels(2));Fields§
§path: PathBufOne native archive. Writers create a new file and never overwrite one.
action: ActionPausing or recovery.
counters: CountersResolved recovery counter behavior, reported even for a pause.
config_source_sha256: Option<String>Optional exact .cfg source-byte hash supplied by a file loader. Direct
programmatic ModelConfig callers instead pin its complete binding structure.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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