pub struct BlockNumber(pub u64);
Expand description
BlockNumber is the block number of a Cardano transaction.
Tuple Fields§
§0: u64
Trait Implementations§
source§impl Add<&BlockNumber> for &u64
impl Add<&BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
+
operator.source§impl Add<&BlockNumber> for u64
impl Add<&BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
+
operator.source§impl Add<&u64> for BlockNumber
impl Add<&u64> for BlockNumber
source§impl Add<BlockNumber> for &u64
impl Add<BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
+
operator.source§impl Add<BlockNumber> for u64
impl Add<BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
+
operator.source§impl Add<u64> for BlockNumber
impl Add<u64> for BlockNumber
source§impl Add for BlockNumber
impl Add for BlockNumber
source§impl AddAssign<&BlockNumber> for u64
impl AddAssign<&BlockNumber> for u64
source§fn add_assign(&mut self, rhs: &BlockNumber)
fn add_assign(&mut self, rhs: &BlockNumber)
Performs the
+=
operation. Read moresource§impl AddAssign<&u64> for BlockNumber
impl AddAssign<&u64> for BlockNumber
source§fn add_assign(&mut self, rhs: &u64)
fn add_assign(&mut self, rhs: &u64)
Performs the
+=
operation. Read moresource§impl AddAssign<BlockNumber> for u64
impl AddAssign<BlockNumber> for u64
source§fn add_assign(&mut self, rhs: BlockNumber)
fn add_assign(&mut self, rhs: BlockNumber)
Performs the
+=
operation. Read moresource§impl AddAssign<u64> for BlockNumber
impl AddAssign<u64> for BlockNumber
source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the
+=
operation. Read moresource§impl AddAssign for BlockNumber
impl AddAssign for BlockNumber
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl Clone for BlockNumber
impl Clone for BlockNumber
source§fn clone(&self) -> BlockNumber
fn clone(&self) -> BlockNumber
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockNumber
impl Debug for BlockNumber
source§impl Default for BlockNumber
impl Default for BlockNumber
source§fn default() -> BlockNumber
fn default() -> BlockNumber
Returns the “default value” for a type. Read more
source§impl Deref for BlockNumber
impl Deref for BlockNumber
source§impl DerefMut for BlockNumber
impl DerefMut for BlockNumber
source§impl<'de> Deserialize<'de> for BlockNumber
impl<'de> Deserialize<'de> for BlockNumber
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 Display for BlockNumber
impl Display for BlockNumber
source§impl Div<&BlockNumber> for &u64
impl Div<&BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
/
operator.source§impl Div<&BlockNumber> for u64
impl Div<&BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
/
operator.source§impl Div<&u64> for BlockNumber
impl Div<&u64> for BlockNumber
source§impl Div<BlockNumber> for &u64
impl Div<BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
/
operator.source§impl Div<BlockNumber> for u64
impl Div<BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
/
operator.source§impl Div<u64> for BlockNumber
impl Div<u64> for BlockNumber
source§impl Div for BlockNumber
impl Div for BlockNumber
source§impl DivAssign<&BlockNumber> for u64
impl DivAssign<&BlockNumber> for u64
source§fn div_assign(&mut self, rhs: &BlockNumber)
fn div_assign(&mut self, rhs: &BlockNumber)
Performs the
/=
operation. Read moresource§impl DivAssign<&u64> for BlockNumber
impl DivAssign<&u64> for BlockNumber
source§fn div_assign(&mut self, rhs: &u64)
fn div_assign(&mut self, rhs: &u64)
Performs the
/=
operation. Read moresource§impl DivAssign<BlockNumber> for u64
impl DivAssign<BlockNumber> for u64
source§fn div_assign(&mut self, rhs: BlockNumber)
fn div_assign(&mut self, rhs: BlockNumber)
Performs the
/=
operation. Read moresource§impl DivAssign<u64> for BlockNumber
impl DivAssign<u64> for BlockNumber
source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/=
operation. Read moresource§impl DivAssign for BlockNumber
impl DivAssign for BlockNumber
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl Hash for BlockNumber
impl Hash for BlockNumber
source§impl Mul<&BlockNumber> for &u64
impl Mul<&BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
*
operator.source§impl Mul<&BlockNumber> for u64
impl Mul<&BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
*
operator.source§impl Mul<&u64> for BlockNumber
impl Mul<&u64> for BlockNumber
source§impl Mul<BlockNumber> for &u64
impl Mul<BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
*
operator.source§impl Mul<BlockNumber> for u64
impl Mul<BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
*
operator.source§impl Mul<u64> for BlockNumber
impl Mul<u64> for BlockNumber
source§impl Mul for BlockNumber
impl Mul for BlockNumber
source§impl MulAssign<&BlockNumber> for u64
impl MulAssign<&BlockNumber> for u64
source§fn mul_assign(&mut self, rhs: &BlockNumber)
fn mul_assign(&mut self, rhs: &BlockNumber)
Performs the
*=
operation. Read moresource§impl MulAssign<&u64> for BlockNumber
impl MulAssign<&u64> for BlockNumber
source§fn mul_assign(&mut self, rhs: &u64)
fn mul_assign(&mut self, rhs: &u64)
Performs the
*=
operation. Read moresource§impl MulAssign<BlockNumber> for u64
impl MulAssign<BlockNumber> for u64
source§fn mul_assign(&mut self, rhs: BlockNumber)
fn mul_assign(&mut self, rhs: BlockNumber)
Performs the
*=
operation. Read moresource§impl MulAssign<u64> for BlockNumber
impl MulAssign<u64> for BlockNumber
source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*=
operation. Read moresource§impl MulAssign for BlockNumber
impl MulAssign for BlockNumber
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl Ord for BlockNumber
impl Ord for BlockNumber
source§fn cmp(&self, other: &BlockNumber) -> Ordering
fn cmp(&self, other: &BlockNumber) -> Ordering
1.21.0 · 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
source§impl PartialEq<&BlockNumber> for BlockNumber
impl PartialEq<&BlockNumber> for BlockNumber
source§impl PartialEq<&BlockNumber> for u64
impl PartialEq<&BlockNumber> for u64
source§impl PartialEq<&u64> for BlockNumber
impl PartialEq<&u64> for BlockNumber
source§impl PartialEq<BlockNumber> for &BlockNumber
impl PartialEq<BlockNumber> for &BlockNumber
source§impl PartialEq<BlockNumber> for &u64
impl PartialEq<BlockNumber> for &u64
source§impl PartialEq<BlockNumber> for u64
impl PartialEq<BlockNumber> for u64
source§impl PartialEq<u64> for &BlockNumber
impl PartialEq<u64> for &BlockNumber
source§impl PartialEq<u64> for BlockNumber
impl PartialEq<u64> for BlockNumber
source§impl PartialEq for BlockNumber
impl PartialEq for BlockNumber
source§impl PartialOrd for BlockNumber
impl PartialOrd for BlockNumber
source§impl Rem<&BlockNumber> for &u64
impl Rem<&BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
%
operator.source§impl Rem<&BlockNumber> for u64
impl Rem<&BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
%
operator.source§impl Rem<&u64> for BlockNumber
impl Rem<&u64> for BlockNumber
source§impl Rem<BlockNumber> for &u64
impl Rem<BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
%
operator.source§impl Rem<BlockNumber> for u64
impl Rem<BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
%
operator.source§impl Rem<u64> for BlockNumber
impl Rem<u64> for BlockNumber
source§impl Rem for BlockNumber
impl Rem for BlockNumber
source§impl RemAssign<&BlockNumber> for u64
impl RemAssign<&BlockNumber> for u64
source§fn rem_assign(&mut self, rhs: &BlockNumber)
fn rem_assign(&mut self, rhs: &BlockNumber)
Performs the
%=
operation. Read moresource§impl RemAssign<&u64> for BlockNumber
impl RemAssign<&u64> for BlockNumber
source§fn rem_assign(&mut self, rhs: &u64)
fn rem_assign(&mut self, rhs: &u64)
Performs the
%=
operation. Read moresource§impl RemAssign<BlockNumber> for u64
impl RemAssign<BlockNumber> for u64
source§fn rem_assign(&mut self, rhs: BlockNumber)
fn rem_assign(&mut self, rhs: BlockNumber)
Performs the
%=
operation. Read moresource§impl RemAssign<u64> for BlockNumber
impl RemAssign<u64> for BlockNumber
source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%=
operation. Read moresource§impl RemAssign for BlockNumber
impl RemAssign for BlockNumber
source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%=
operation. Read moresource§impl Serialize for BlockNumber
impl Serialize for BlockNumber
source§impl<S: MKTreeStorer> SignableBuilder<BlockNumber> for CardanoTransactionsSignableBuilder<S>
impl<S: MKTreeStorer> SignableBuilder<BlockNumber> for CardanoTransactionsSignableBuilder<S>
source§fn compute_protocol_message<'life0, 'async_trait>(
&'life0 self,
beacon: BlockNumber,
) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn compute_protocol_message<'life0, 'async_trait>(
&'life0 self,
beacon: BlockNumber,
) -> Pin<Box<dyn Future<Output = StdResult<ProtocolMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Compute a protocol message
source§impl Sub<&BlockNumber> for &u64
impl Sub<&BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
-
operator.source§impl Sub<&BlockNumber> for u64
impl Sub<&BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
-
operator.source§impl Sub<&u64> for BlockNumber
impl Sub<&u64> for BlockNumber
source§impl Sub<BlockNumber> for &u64
impl Sub<BlockNumber> for &u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
-
operator.source§impl Sub<BlockNumber> for u64
impl Sub<BlockNumber> for u64
source§type Output = BlockNumber
type Output = BlockNumber
The resulting type after applying the
-
operator.source§impl Sub<u64> for BlockNumber
impl Sub<u64> for BlockNumber
source§impl Sub for BlockNumber
impl Sub for BlockNumber
source§impl SubAssign<&BlockNumber> for u64
impl SubAssign<&BlockNumber> for u64
source§fn sub_assign(&mut self, rhs: &BlockNumber)
fn sub_assign(&mut self, rhs: &BlockNumber)
Performs the
-=
operation. Read moresource§impl SubAssign<&u64> for BlockNumber
impl SubAssign<&u64> for BlockNumber
source§fn sub_assign(&mut self, rhs: &u64)
fn sub_assign(&mut self, rhs: &u64)
Performs the
-=
operation. Read moresource§impl SubAssign<BlockNumber> for u64
impl SubAssign<BlockNumber> for u64
source§fn sub_assign(&mut self, rhs: BlockNumber)
fn sub_assign(&mut self, rhs: BlockNumber)
Performs the
-=
operation. Read moresource§impl SubAssign<u64> for BlockNumber
impl SubAssign<u64> for BlockNumber
source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the
-=
operation. Read moresource§impl SubAssign for BlockNumber
impl SubAssign for BlockNumber
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moresource§impl TryFrom<BlockNumber> for i64
impl TryFrom<BlockNumber> for i64
source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
impl Beacon for BlockNumber
impl Copy for BlockNumber
impl Eq for BlockNumber
impl StructuralPartialEq for BlockNumber
Auto Trait Implementations§
impl Freeze for BlockNumber
impl RefUnwindSafe for BlockNumber
impl Send for BlockNumber
impl Sync for BlockNumber
impl Unpin for BlockNumber
impl UnwindSafe for BlockNumber
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.