pub struct BatchPosition {
pub slot: u64,
pub batch_index: u32,
}Expand description
A batch of a block, by its slot and its place among the block’s batches.
Fields§
§slot: u64The block’s slot.
batch_index: u32Which of the block’s batches.
Trait Implementations§
Source§impl Clone for BatchPosition
impl Clone for BatchPosition
impl Copy for BatchPosition
Source§impl Debug for BatchPosition
impl Debug for BatchPosition
Source§impl<'de> Deserialize<'de> for BatchPosition
impl<'de> Deserialize<'de> for BatchPosition
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
impl Eq for BatchPosition
Source§impl Hash for BatchPosition
impl Hash for BatchPosition
Source§impl Ord for BatchPosition
impl Ord for BatchPosition
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BatchPosition
impl PartialEq for BatchPosition
Source§impl PartialOrd for BatchPosition
impl PartialOrd for BatchPosition
Source§impl Serialize for BatchPosition
impl Serialize for BatchPosition
impl StructuralPartialEq for BatchPosition
Auto Trait Implementations§
impl Forget for BatchPosition
impl Freeze for BatchPosition
impl Move for BatchPosition
impl RefUnwindSafe for BatchPosition
impl Send for BatchPosition
impl Sync for BatchPosition
impl Unpin for BatchPosition
impl UnsafeUnpin for BatchPosition
impl UnwindSafe for BatchPosition
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