pub struct StateQueueDataV2 {
pub nodes: Vec<u64>,
pub node_hashes: Vec<[u8; 32]>,
pub initial_root: [u8; 32],
pub root_seq: u64,
pub output_queue: Option<OutputQueueDataV2>,
pub input_queue: Option<InputQueueDataV2>,
}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<OutputQueueDataV2>Output queue data (if requested)
input_queue: Option<InputQueueDataV2>Input queue data (if requested)
Trait Implementations§
Source§impl Clone for StateQueueDataV2
impl Clone for StateQueueDataV2
Source§fn clone(&self) -> StateQueueDataV2
fn clone(&self) -> StateQueueDataV2
Returns a duplicate of the value. Read more
1.0.0 · 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 StateQueueDataV2
impl Debug for StateQueueDataV2
Source§impl Default for StateQueueDataV2
impl Default for StateQueueDataV2
Source§fn default() -> StateQueueDataV2
fn default() -> StateQueueDataV2
Returns the “default value” for a type. Read more
Source§impl PartialEq for StateQueueDataV2
impl PartialEq for StateQueueDataV2
impl StructuralPartialEq for StateQueueDataV2
Auto Trait Implementations§
impl Freeze for StateQueueDataV2
impl RefUnwindSafe for StateQueueDataV2
impl Send for StateQueueDataV2
impl Sync for StateQueueDataV2
impl Unpin for StateQueueDataV2
impl UnwindSafe for StateQueueDataV2
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> 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