Struct kitsune_p2p_types::fetch_pool::FetchPoolInfo
source · pub struct FetchPoolInfo {
pub op_bytes_to_fetch: usize,
pub num_ops_to_fetch: usize,
}
Expand description
Info about the fetch queue
Fields§
§op_bytes_to_fetch: usize
Total number of bytes expected to be received through fetches
num_ops_to_fetch: usize
Total number of ops expected to be received through fetches
Trait Implementations§
source§impl Clone for FetchPoolInfo
impl Clone for FetchPoolInfo
source§fn clone(&self) -> FetchPoolInfo
fn clone(&self) -> FetchPoolInfo
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 FetchPoolInfo
impl Debug for FetchPoolInfo
source§impl Default for FetchPoolInfo
impl Default for FetchPoolInfo
source§fn default() -> FetchPoolInfo
fn default() -> FetchPoolInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FetchPoolInfo
impl<'de> Deserialize<'de> for FetchPoolInfo
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 PartialEq for FetchPoolInfo
impl PartialEq for FetchPoolInfo
source§fn eq(&self, other: &FetchPoolInfo) -> bool
fn eq(&self, other: &FetchPoolInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FetchPoolInfo
impl Serialize for FetchPoolInfo
impl Eq for FetchPoolInfo
impl StructuralEq for FetchPoolInfo
impl StructuralPartialEq for FetchPoolInfo
Auto Trait Implementations§
impl RefUnwindSafe for FetchPoolInfo
impl Send for FetchPoolInfo
impl Sync for FetchPoolInfo
impl Unpin for FetchPoolInfo
impl UnwindSafe for FetchPoolInfo
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
§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.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.§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<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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.