Struct txpool::LightStatus
source · [−]Expand description
Light pool status. This status is cheap to compute and can be called frequently.
Fields
mem_usage: usize
Memory usage in bytes.
transaction_count: usize
Total number of transactions in the pool.
senders: usize
Number of unique senders in the pool.
Trait Implementations
sourceimpl Clone for LightStatus
impl Clone for LightStatus
sourcefn clone(&self) -> LightStatus
fn clone(&self) -> LightStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LightStatus
impl Debug for LightStatus
sourceimpl Default for LightStatus
impl Default for LightStatus
sourcefn default() -> LightStatus
fn default() -> LightStatus
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LightStatus> for LightStatus
impl PartialEq<LightStatus> for LightStatus
sourcefn eq(&self, other: &LightStatus) -> bool
fn eq(&self, other: &LightStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LightStatus) -> bool
fn ne(&self, other: &LightStatus) -> bool
This method tests for !=
.
impl Eq for LightStatus
impl StructuralEq for LightStatus
impl StructuralPartialEq for LightStatus
Auto Trait Implementations
impl RefUnwindSafe for LightStatus
impl Send for LightStatus
impl Sync for LightStatus
impl Unpin for LightStatus
impl UnwindSafe for LightStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more