pub struct CanvasPersistenceByteStoreAdapter<S, C = CanvasJsonPersistenceCodec> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S, C> CanvasPersistenceStore for CanvasPersistenceByteStoreAdapter<S, C>where
S: CanvasPersistenceByteStore,
C: CanvasPersistenceCodec,
impl<S, C> CanvasPersistenceStore for CanvasPersistenceByteStoreAdapter<S, C>where
S: CanvasPersistenceByteStore,
C: CanvasPersistenceCodec,
type Error = CanvasPersistenceByteStoreError<<S as CanvasPersistenceByteStore>::Error, <C as CanvasPersistenceCodec>::Error>
fn load_checkpoint(&self) -> Result<Option<CanvasCheckpoint>, Self::Error>
fn save_checkpoint( &mut self, checkpoint: CanvasCheckpoint, ) -> Result<(), Self::Error>
fn append_log_entry(&mut self, entry: CanvasLogEntry) -> Result<(), Self::Error>
fn load_log_entries( &self, after_sequence: u64, ) -> Result<Vec<CanvasLogEntry>, Self::Error>
fn compact_log_entries( &mut self, through_sequence: u64, ) -> Result<(), Self::Error>
Source§impl<S: Clone, C: Clone> Clone for CanvasPersistenceByteStoreAdapter<S, C>
impl<S: Clone, C: Clone> Clone for CanvasPersistenceByteStoreAdapter<S, C>
Source§fn clone(&self) -> CanvasPersistenceByteStoreAdapter<S, C>
fn clone(&self) -> CanvasPersistenceByteStoreAdapter<S, C>
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 moreAuto Trait Implementations§
impl<S, C> Freeze for CanvasPersistenceByteStoreAdapter<S, C>
impl<S, C> RefUnwindSafe for CanvasPersistenceByteStoreAdapter<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for CanvasPersistenceByteStoreAdapter<S, C>
impl<S, C> Sync for CanvasPersistenceByteStoreAdapter<S, C>
impl<S, C> Unpin for CanvasPersistenceByteStoreAdapter<S, C>
impl<S, C> UnsafeUnpin for CanvasPersistenceByteStoreAdapter<S, C>where
S: UnsafeUnpin,
C: UnsafeUnpin,
impl<S, C> UnwindSafe for CanvasPersistenceByteStoreAdapter<S, C>where
S: UnwindSafe,
C: UnwindSafe,
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,
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 more