Struct sp_core::offchain::storage::InMemOffchainStorage [−][src]
pub struct InMemOffchainStorage { /* fields omitted */ }In-memory storage for offchain workers.
Implementations
impl InMemOffchainStorage[src]
impl InMemOffchainStorage[src]pub fn into_iter(self) -> impl Iterator<Item = (Vec<u8>, Vec<u8>)>[src]
Consume the offchain storage and iterate over all key value pairs.
pub fn iter<'a>(&'a self) -> impl Iterator<Item = (&'a Vec<u8>, &'a Vec<u8>)>[src]
Iterate over all key value pairs by reference.
pub fn remove(&mut self, prefix: &[u8], key: &[u8])[src]
Remove a key and its associated value from the offchain database.
Trait Implementations
impl Clone for InMemOffchainStorage[src]
impl Clone for InMemOffchainStorage[src]fn clone(&self) -> InMemOffchainStorage[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for InMemOffchainStorage[src]
impl Default for InMemOffchainStorage[src]fn default() -> InMemOffchainStorage[src]
impl OffchainStorage for InMemOffchainStorage[src]
impl OffchainStorage for InMemOffchainStorage[src]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
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>, [src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src]pub fn unchecked_into(Self) -> T[src]
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,