Struct jormungandr::blockcfg::ChainLength
source · pub struct ChainLength(pub(crate) u32);
Tuple Fields§
§0: u32
Implementations§
source§impl ChainLength
impl ChainLength
pub fn increase(self) -> ChainLength
pub fn nth_ancestor(self, depth: u32) -> Option<ChainLength>
Trait Implementations§
source§impl Arbitrary for ChainLength
impl Arbitrary for ChainLength
source§impl ChainLength for ChainLength
impl ChainLength for ChainLength
fn next(&self) -> ChainLength
source§impl Clone for ChainLength
impl Clone for ChainLength
source§fn clone(&self) -> ChainLength
fn clone(&self) -> ChainLength
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 ChainLength
impl Debug for ChainLength
source§impl Display for ChainLength
impl Display for ChainLength
source§impl From<ChainLength> for u32
impl From<ChainLength> for u32
source§fn from(chain_length: ChainLength) -> u32
fn from(chain_length: ChainLength) -> u32
Converts to this type from the input type.
source§impl From<u32> for ChainLength
impl From<u32> for ChainLength
source§fn from(n: u32) -> ChainLength
fn from(n: u32) -> ChainLength
Converts to this type from the input type.
source§impl Hash for ChainLength
impl Hash for ChainLength
source§impl Ord for ChainLength
impl Ord for ChainLength
source§fn cmp(&self, other: &ChainLength) -> Ordering
fn cmp(&self, other: &ChainLength) -> 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<ChainLength> for ChainLength
impl PartialEq<ChainLength> for ChainLength
source§fn eq(&self, other: &ChainLength) -> bool
fn eq(&self, other: &ChainLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChainLength> for ChainLength
impl PartialOrd<ChainLength> for ChainLength
source§fn partial_cmp(&self, other: &ChainLength) -> Option<Ordering>
fn partial_cmp(&self, other: &ChainLength) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ChainLength
impl Eq for ChainLength
impl StructuralEq for ChainLength
impl StructuralPartialEq for ChainLength
Auto Trait Implementations§
impl RefUnwindSafe for ChainLength
impl Send for ChainLength
impl Sync for ChainLength
impl Unpin for ChainLength
impl UnwindSafe for ChainLength
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request