pub enum CausedBy {
Begin,
Single(String),
Multiple(Vec<String>),
}Expand description
Causal predecessor reference for a message (REQ-202).
Encodes the :caused-by keyword parameter:
Begin— this message starts a new causal chain (:caused-by "begin")Single(hash)— single predecessor (:caused-by <hash>)Multiple(hashes)— multiple predecessors (:caused-by (<h1> <h2> ...))
For the Multiple variant, hashes are stored in canonical (sorted) order
to ensure deterministic hashing.
Variants§
Begin
This message begins a new causal chain.
Single(String)
Single causal predecessor, identified by content hash.
Multiple(Vec<String>)
Multiple causal predecessors, sorted lexicographically for canonical ordering.
Trait Implementations§
impl Eq for CausedBy
impl StructuralPartialEq for CausedBy
Auto Trait Implementations§
impl Forget for CausedBy
impl Freeze for CausedBy
impl Move for CausedBy
impl RefUnwindSafe for CausedBy
impl Send for CausedBywhere
RawVecInner: Send,
impl Sync for CausedBywhere
RawVecInner: Sync,
impl Unpin for CausedBy
impl UnsafeUnpin for CausedBywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CausedBywhere
RawVecInner: UnwindSafe,
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