Struct sp_core::offchain::testing::TestPersistentOffchainDB [−][src]
pub struct TestPersistentOffchainDB { /* fields omitted */ }
Sharable “persistent” offchain storage for test.
Implementations
impl TestPersistentOffchainDB
[src]
impl TestPersistentOffchainDB
[src]pub fn new() -> Self
[src]
Create a new and empty offchain storage db for persistent items
pub fn apply_offchain_changes(
&mut self,
changes: impl Iterator<Item = ((Vec<u8>, Vec<u8>), OffchainOverlayedChange)>
)
[src]
&mut self,
changes: impl Iterator<Item = ((Vec<u8>, Vec<u8>), OffchainOverlayedChange)>
)
Apply a set of off-chain changes directly to the test backend
pub fn get(&self, key: &[u8]) -> Option<Vec<u8>>
[src]
Retrieve a key from the test backend.
Trait Implementations
impl Clone for TestPersistentOffchainDB
[src]
impl Clone for TestPersistentOffchainDB
[src]fn clone(&self) -> TestPersistentOffchainDB
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TestPersistentOffchainDB
[src]
impl Default for TestPersistentOffchainDB
[src]fn default() -> TestPersistentOffchainDB
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TestPersistentOffchainDB
impl Send for TestPersistentOffchainDB
impl Sync for TestPersistentOffchainDB
impl Unpin for TestPersistentOffchainDB
impl !UnwindSafe for TestPersistentOffchainDB
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,