Struct sp_state_machine::backend::IterArgs
source · #[non_exhaustive]pub struct IterArgs<'a> {
pub prefix: Option<&'a [u8]>,
pub start_at: Option<&'a [u8]>,
pub start_at_exclusive: bool,
pub child_info: Option<ChildInfo>,
pub stop_on_incomplete_database: bool,
}Expand description
A struct containing arguments for iterating over the storage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefix: Option<&'a [u8]>The prefix of the keys over which to iterate.
start_at: Option<&'a [u8]>The prefix from which to start the iteration from.
This is inclusive and the iteration will include the key which is specified here.
start_at_exclusive: boolIf this is true then the iteration will not include
the key specified in start_at, if there is such a key.
child_info: Option<ChildInfo>The info of the child trie over which to iterate over.
stop_on_incomplete_database: boolWhether to stop iteration when a missing trie node is reached.
When a missing trie node is reached the iterator will:
- return an error if this is set to
false(default) - return
Noneif this is set totrue
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for IterArgs<'a>
impl<'a> Send for IterArgs<'a>
impl<'a> Sync for IterArgs<'a>
impl<'a> Unpin for IterArgs<'a>
impl<'a> UnwindSafe for IterArgs<'a>
Blanket Implementations§
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read moresource§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read moresource§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read moresource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read moresource§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>,
source§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.