pub enum SlotHashStatus {
Found([u8; 32]),
Skipped,
TooOld,
Ahead,
}Expand description
What the sysvar says about a slot.
Variants§
Found([u8; 32])
The slot produced a block with this hash.
Skipped
The slot is inside the range the sysvar covers and has no entry: no block was produced in it.
TooOld
The slot is older than the oldest entry.
Ahead
The slot is newer than the newest entry (the current slot’s hash is not known until the slot ends), or the sysvar is empty.
Trait Implementations§
Source§impl Clone for SlotHashStatus
impl Clone for SlotHashStatus
impl Copy for SlotHashStatus
Source§impl Debug for SlotHashStatus
impl Debug for SlotHashStatus
impl Eq for SlotHashStatus
Source§impl PartialEq for SlotHashStatus
impl PartialEq for SlotHashStatus
impl StructuralPartialEq for SlotHashStatus
Auto Trait Implementations§
impl Freeze for SlotHashStatus
impl RefUnwindSafe for SlotHashStatus
impl Send for SlotHashStatus
impl Sync for SlotHashStatus
impl Unpin for SlotHashStatus
impl UnsafeUnpin for SlotHashStatus
impl UnwindSafe for SlotHashStatus
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