pub struct StateQueueDataV2 {
pub nodes: Vec<u64>,
pub node_hashes: Vec<String>,
pub initial_root: String,
pub root_seq: u64,
pub output_queue: Option<Box<OutputQueueDataV2>>,
pub input_queue: Option<Box<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<String>§initial_root: StringInitial root for the state tree (shared by output and input queues)
root_seq: u64Sequence number of the root
output_queue: Option<Box<OutputQueueDataV2>>§input_queue: Option<Box<InputQueueDataV2>>Implementations§
Source§impl StateQueueDataV2
impl StateQueueDataV2
pub fn new(initial_root: String, root_seq: u64) -> StateQueueDataV2
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<'de> Deserialize<'de> for StateQueueDataV2
impl<'de> Deserialize<'de> for StateQueueDataV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StateQueueDataV2
impl PartialEq for StateQueueDataV2
Source§impl Serialize for StateQueueDataV2
impl Serialize 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