pub struct DagNode {
pub event: Event,
pub parents: Vec<String>,
pub children: Vec<String>,
}Expand description
A node in the event DAG, storing the event and its bidirectional links.
Fields§
§event: EventThe event stored at this node.
parents: Vec<String>Hashes of this node’s parent events (events that causally precede it).
children: Vec<String>Hashes of this node’s child events (events that causally follow it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DagNode
impl RefUnwindSafe for DagNode
impl Send for DagNode
impl Sync for DagNode
impl Unpin for DagNode
impl UnsafeUnpin for DagNode
impl UnwindSafe for DagNode
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