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