Enum sov_rollup_interface::rpc::BatchIdentifier
source · 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<BatchIdentifier> for BatchIdentifier
impl PartialEq<BatchIdentifier> for BatchIdentifier
source§fn eq(&self, other: &BatchIdentifier) -> bool
fn eq(&self, other: &BatchIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BatchIdentifier
impl Serialize for BatchIdentifier
impl StructuralPartialEq for BatchIdentifier
Auto Trait Implementations§
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