[−][src]Struct sp_state_machine::ReadOnlyExternalities
Simple read-only externalities for any backend.
To be used in test for state inspection. Will panic if something writes to the storage.
Implementations
impl<'a, H: Hasher, B: 'a + Backend<H>> ReadOnlyExternalities<'a, H, B>[src][−]
pub fn execute_with<R>(&mut self, f: impl FnOnce() -> R) -> R[src][−]
Execute the given closure while self is set as externalities.
Returns the result of the given closure.
Trait Implementations
impl<'a, H: Debug + Hasher, B: Debug + 'a + Backend<H>> Debug for ReadOnlyExternalities<'a, H, B>[src][+]
impl<'a, H: Hasher, B: 'a + Backend<H>> ExtensionStore for ReadOnlyExternalities<'a, H, B>[src][+]
impl<'a, H: Hasher, B: 'a + Backend<H>> Externalities for ReadOnlyExternalities<'a, H, B>[src][+]
impl<'a, H: Hasher, B: 'a + Backend<H>> From<&'a B> for ReadOnlyExternalities<'a, H, B>[src][+]
Auto Trait Implementations
impl<'a, H, B> RefUnwindSafe for ReadOnlyExternalities<'a, H, B> where
B: RefUnwindSafe,
H: RefUnwindSafe,
B: RefUnwindSafe,
H: RefUnwindSafe,
impl<'a, H, B> Send for ReadOnlyExternalities<'a, H, B> where
B: Sync,
B: Sync,
impl<'a, H, B> Sync for ReadOnlyExternalities<'a, H, B> where
B: Sync,
B: Sync,
impl<'a, H, B> Unpin for ReadOnlyExternalities<'a, H, B> where
H: Unpin,
H: Unpin,
impl<'a, H, B> UnwindSafe for ReadOnlyExternalities<'a, H, B> where
B: RefUnwindSafe,
H: UnwindSafe,
B: RefUnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src][+]
T: ?Sized,
impl<T> From<T> for T[src][+]
impl<T, U> Into<U> for T where
U: From<T>, [src][+]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>, [src][+]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src][+]
U: TryFrom<T>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>, [src][+]
T: UncheckedFrom<S>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src][+]
V: MultiLane<T>,