pub struct MicroLamports(/* private fields */);Expand description
10^-6 lamports, only used for prioritization fee calculations.
Implementations§
Source§impl MicroLamports
impl MicroLamports
Sourcepub const MIN: Self
pub const MIN: Self
Minimum recommended fee for a transaction. Based on https://docs.helius.dev/solana-apis/priority-fee-api#helius-priority-fee-api
Sourcepub fn into_inner(self) -> u64
pub fn into_inner(self) -> u64
Extracts the inner value.
Sourcepub fn checked_mul(&self, rhs: u64) -> Option<Self>
pub fn checked_mul(&self, rhs: u64) -> Option<Self>
Multiplies the inner value by the given value, returning None if the result would overflow.
Sourcepub fn checked_div(&self, rhs: u64) -> Option<Self>
pub fn checked_div(&self, rhs: u64) -> Option<Self>
Divides the inner value by the given value, returning None if rhs == 0.
Sourcepub fn checked_div_self(&self, rhs: Self) -> Option<u64>
pub fn checked_div_self(&self, rhs: Self) -> Option<u64>
Divides the inner value from the given value, returning None if the result would underflow.
Sourcepub fn checked_add(&self, rhs: Self) -> Option<Self>
pub fn checked_add(&self, rhs: Self) -> Option<Self>
Adds the inner value to the given value, returning None if the result would overflow.
Sourcepub fn checked_sub(&self, rhs: Self) -> Option<Self>
pub fn checked_sub(&self, rhs: Self) -> Option<Self>
Subtracts the given value from the inner value, returning None if the result would underflow.
Trait Implementations§
Source§impl Clone for MicroLamports
impl Clone for MicroLamports
Source§fn clone(&self) -> MicroLamports
fn clone(&self) -> MicroLamports
Returns a duplicate 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 MicroLamports
impl Debug for MicroLamports
Source§impl From<Lamports> for MicroLamports
impl From<Lamports> for MicroLamports
Source§impl Ord for MicroLamports
impl Ord for MicroLamports
Source§fn cmp(&self, other: &MicroLamports) -> Ordering
fn cmp(&self, other: &MicroLamports) -> 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 for MicroLamports
impl PartialEq for MicroLamports
Source§impl PartialOrd for MicroLamports
impl PartialOrd for MicroLamports
Source§impl TryFrom<MicroLamports> for Lamports
impl TryFrom<MicroLamports> for Lamports
impl Copy for MicroLamports
impl Eq for MicroLamports
impl StructuralPartialEq for MicroLamports
Auto Trait Implementations§
impl Freeze for MicroLamports
impl RefUnwindSafe for MicroLamports
impl Send for MicroLamports
impl Sync for MicroLamports
impl Unpin for MicroLamports
impl UnwindSafe for MicroLamports
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> 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 more