Struct sp_state_machine::ChangesTrieState
source · [−]pub struct ChangesTrieState<'a, H, Number> {
pub config: ChangesTrieConfiguration,
pub zero: Number,
pub storage: &'a dyn Storage<H, Number>,
}
Expand description
Changes tries state at some block.
Fields
config: ChangesTrieConfiguration
Configuration that is active at given block.
zero: Number
Configuration activation block number. Zero if it is the first configuration on the chain, or number of the block that have emit NewConfiguration signal (thus activating configuration starting from the next block).
storage: &'a dyn Storage<H, Number>
Underlying changes tries storage reference.
Implementations
sourceimpl<'a, H, Number> State<'a, H, Number>
impl<'a, H, Number> State<'a, H, Number>
sourcepub fn new(
config: ChangesTrieConfiguration,
zero: Number,
storage: &'a dyn Storage<H, Number>
) -> Self
pub fn new(
config: ChangesTrieConfiguration,
zero: Number,
storage: &'a dyn Storage<H, Number>
) -> Self
Create state with given config and storage.
Trait Implementations
Auto Trait Implementations
impl<'a, H, Number> !RefUnwindSafe for State<'a, H, Number>
impl<'a, H, Number> Send for State<'a, H, Number> where
Number: Send,
impl<'a, H, Number> Sync for State<'a, H, Number> where
Number: Sync,
impl<'a, H, Number> Unpin for State<'a, H, Number> where
Number: Unpin,
impl<'a, H, Number> !UnwindSafe for State<'a, H, Number>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.