pub struct CheckpointStore { /* private fields */ }Implementations§
Source§impl CheckpointStore
impl CheckpointStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn default_local() -> Self
pub fn root(&self) -> &Path
pub async fn load_latest( &self, session_id: Uuid, ) -> Result<Option<CheckpointEnvelopeV1>, String>
pub async fn save_latest( &self, session_id: Uuid, envelope: &CheckpointEnvelopeV1, ) -> Result<(), String>
Trait Implementations§
Source§impl Clone for CheckpointStore
impl Clone for CheckpointStore
Source§fn clone(&self) -> CheckpointStore
fn clone(&self) -> CheckpointStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CheckpointStore
impl RefUnwindSafe for CheckpointStore
impl Send for CheckpointStore
impl Sync for CheckpointStore
impl Unpin for CheckpointStore
impl UnsafeUnpin for CheckpointStore
impl UnwindSafe for CheckpointStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request