pub struct Node {
pub dot: Dot,
pub stage: Stage,
pub bits: BitVec<u64>,
pub payload: Option<Vec<u8>>,
pub context: Option<Vec<Dot>>,
pub predecessors: SmallVec<[usize; 4]>,
pub successors: SmallVec<[usize; 4]>,
}Expand description
Struct of a node from the causal dependency graph.
Fields§
§dot: DotMessage dot
stage: StageCurrent stage
bits: BitVec<u64>Bit string
payload: Option<Vec<u8>>Serialized message payload
context: Option<Vec<Dot>>Message context
predecessors: SmallVec<[usize; 4]>Indexes to the predecessors that are still in the graph
successors: SmallVec<[usize; 4]>Indexes to the successors that are still in the graph
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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