pub struct StateQueueData {
pub nodes: Vec<u64>,
pub node_hashes: Vec<[u8; 32]>,
pub initial_root: [u8; 32],
pub root_seq: u64,
pub output_queue: Option<OutputQueueData>,
pub input_queue: Option<InputQueueData>,
}Expand description
State queue data with shared tree nodes for output and input queues
Fields§
§nodes: Vec<u64>Shared deduplicated tree nodes for state queues (output + input) node_index encoding: (level << 56) | position
node_hashes: Vec<[u8; 32]>§initial_root: [u8; 32]Initial root for the state tree (shared by output and input queues)
root_seq: u64Sequence number of the root
output_queue: Option<OutputQueueData>Output queue data (if requested)
input_queue: Option<InputQueueData>Input queue data (if requested)
Trait Implementations§
Source§impl Clone for StateQueueData
impl Clone for StateQueueData
Source§fn clone(&self) -> StateQueueData
fn clone(&self) -> StateQueueData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateQueueData
impl Debug for StateQueueData
Source§impl Default for StateQueueData
impl Default for StateQueueData
Source§fn default() -> StateQueueData
fn default() -> StateQueueData
Returns the “default value” for a type. Read more
Source§impl PartialEq for StateQueueData
impl PartialEq for StateQueueData
Source§fn eq(&self, other: &StateQueueData) -> bool
fn eq(&self, other: &StateQueueData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StateQueueData
Auto Trait Implementations§
impl Freeze for StateQueueData
impl RefUnwindSafe for StateQueueData
impl Send for StateQueueData
impl Sync for StateQueueData
impl Unpin for StateQueueData
impl UnsafeUnpin for StateQueueData
impl UnwindSafe for StateQueueData
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more