Struct sp_core::offchain::storage::InMemOffchainStorage
source · pub struct InMemOffchainStorage { /* private fields */ }
Expand description
In-memory storage for offchain workers.
Implementations§
Trait Implementations§
source§impl Clone for InMemOffchainStorage
impl Clone for InMemOffchainStorage
source§fn clone(&self) -> InMemOffchainStorage
fn clone(&self) -> InMemOffchainStorage
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 Debug for InMemOffchainStorage
impl Debug for InMemOffchainStorage
source§impl Default for InMemOffchainStorage
impl Default for InMemOffchainStorage
source§fn default() -> InMemOffchainStorage
fn default() -> InMemOffchainStorage
Returns the “default value” for a type. Read more
source§impl OffchainStorage for InMemOffchainStorage
impl OffchainStorage for InMemOffchainStorage
source§fn set(&mut self, prefix: &[u8], key: &[u8], value: &[u8])
fn set(&mut self, prefix: &[u8], key: &[u8], value: &[u8])
Persist a value in storage under given key and prefix.
source§fn remove(&mut self, prefix: &[u8], key: &[u8])
fn remove(&mut self, prefix: &[u8], key: &[u8])
Clear a storage entry under given key and prefix.
Auto Trait Implementations§
impl RefUnwindSafe for InMemOffchainStorage
impl Send for InMemOffchainStorage
impl Sync for InMemOffchainStorage
impl Unpin for InMemOffchainStorage
impl UnwindSafe for InMemOffchainStorage
Blanket Implementations§
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, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.