Struct mutiny_core::storage::OnChainStorage
source · pub struct OnChainStorage<S: MutinyStorage>(_);Trait Implementations§
source§impl<S: Clone + MutinyStorage> Clone for OnChainStorage<S>
impl<S: Clone + MutinyStorage> Clone for OnChainStorage<S>
source§fn clone(&self) -> OnChainStorage<S>
fn clone(&self) -> OnChainStorage<S>
Returns a copy 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 moresource§impl<K, S: MutinyStorage> PersistBackend<K> for OnChainStorage<S>where
K: Default + Clone + Append + Serialize + DeserializeOwned,
impl<K, S: MutinyStorage> PersistBackend<K> for OnChainStorage<S>where K: Default + Clone + Append + Serialize + DeserializeOwned,
§type WriteError = MutinyError
type WriteError = MutinyError
The error the backend returns when it fails to write.
§type LoadError = MutinyError
type LoadError = MutinyError
The error the backend returns when it fails to load changesets
C.source§fn write_changes(&mut self, changeset: &K) -> Result<(), Self::WriteError>
fn write_changes(&mut self, changeset: &K) -> Result<(), Self::WriteError>
Writes a changeset to the persistence backend. Read more
source§fn load_from_persistence(&mut self) -> Result<K, Self::LoadError>
fn load_from_persistence(&mut self) -> Result<K, Self::LoadError>
Return the aggregate changeset
C from persistence.Auto Trait Implementations§
impl<S> RefUnwindSafe for OnChainStorage<S>where S: RefUnwindSafe,
impl<S> Send for OnChainStorage<S>where S: Send,
impl<S> Sync for OnChainStorage<S>where S: Sync,
impl<S> Unpin for OnChainStorage<S>where S: Unpin,
impl<S> UnwindSafe for OnChainStorage<S>where S: 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