pub enum SlotIdentifier {
Hash([u8; 32]),
Number(u64),
}
Expand description
An identifier that specifies a single slot.
Variants§
Hash([u8; 32])
The hex encoded hash of the slot (i.e. the da layer’s block hash).
Number(u64)
The monotonically increasing number of the slot, ordered by the DA layer but starting from 0 at the rollup’s genesis.
Trait Implementations§
Source§impl Debug for SlotIdentifier
impl Debug for SlotIdentifier
Source§impl<'de> Deserialize<'de> for SlotIdentifier
impl<'de> Deserialize<'de> for SlotIdentifier
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 SlotIdentifier
impl PartialEq for SlotIdentifier
Source§impl Serialize for SlotIdentifier
impl Serialize for SlotIdentifier
impl StructuralPartialEq for SlotIdentifier
Auto Trait Implementations§
impl Freeze for SlotIdentifier
impl RefUnwindSafe for SlotIdentifier
impl Send for SlotIdentifier
impl Sync for SlotIdentifier
impl Unpin for SlotIdentifier
impl UnwindSafe for SlotIdentifier
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