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: bool
If 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: bool
Whether 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
None
if 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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§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<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
.