pub enum BatchIdentifier {
Hash([u8; 32]),
SlotIdAndOffset(SlotIdAndOffset),
Number(u64),
}
Expand description
An identifier that specifies a single batch
Variants§
Hash([u8; 32])
The hex-encoded hash of the batch, as computed by the DA layer.
SlotIdAndOffset(SlotIdAndOffset)
An offset into a particular slot (i.e. the 3rd batch in slot 5).
Number(u64)
The monotonically increasing number of the batch, ordered by the DA layer For example, if the genesis slot contains 0 batches, slot 1 contains 2 txs, and slot 3 contains 3 txs, the last batch in block 3 would have number 5. The counter never resets.
Trait Implementations§
Source§impl Debug for BatchIdentifier
impl Debug for BatchIdentifier
Source§impl<'de> Deserialize<'de> for BatchIdentifier
impl<'de> Deserialize<'de> for BatchIdentifier
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 BatchIdentifier
impl PartialEq for BatchIdentifier
Source§impl Serialize for BatchIdentifier
impl Serialize for BatchIdentifier
impl StructuralPartialEq for BatchIdentifier
Auto Trait Implementations§
impl Freeze for BatchIdentifier
impl RefUnwindSafe for BatchIdentifier
impl Send for BatchIdentifier
impl Sync for BatchIdentifier
impl Unpin for BatchIdentifier
impl UnwindSafe for BatchIdentifier
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