Skip to main content

IncomingResourceState

Struct IncomingResourceState 

Source
pub struct IncomingResourceState {
Show 32 fields pub salt_nonce: SaltNonce, pub compression: ResourceCompression, pub has_metadata: bool, pub uncompressed_data_bytes: u64, pub segment_index: u64, pub total_segments: u64, pub sealed_transfer_bytes: usize, pub part_count: usize, pub sdu: usize, pub received_part_count: usize, pub outstanding_part_count: usize, pub consecutive_completed: Option<usize>, pub hashmap_height: usize, pub waiting_for_hmu: bool, pub window: usize, pub window_min: usize, pub window_max: usize, pub status: IncomingResourceStatus, pub retries_left: u8, pub correlation: ResourceCorrelation, pub measured_rtt_ms: Option<u64>, pub part_timeout_factor: u64, pub request_sent_at: Option<InstantMillis>, pub request_sent_bytes: u64, pub awaiting_round_first_response: bool, pub received_byte_count: u64, pub received_byte_count_at_request: u64, pub request_response_bytes_per_second: u64, pub data_bytes_per_second: u64, pub inherited_eifr: Option<u64>, pub fast_rate_rounds: u8, pub very_slow_rate_rounds: u8,
}

Fields§

§salt_nonce: SaltNonce§compression: ResourceCompression§has_metadata: bool§uncompressed_data_bytes: u64§segment_index: u64§total_segments: u64§sealed_transfer_bytes: usize§part_count: usize§sdu: usize§received_part_count: usize§outstanding_part_count: usize§consecutive_completed: Option<usize>§hashmap_height: usize§waiting_for_hmu: bool§window: usize§window_min: usize§window_max: usize§status: IncomingResourceStatus§retries_left: u8§correlation: ResourceCorrelation§measured_rtt_ms: Option<u64>§part_timeout_factor: u64§request_sent_at: Option<InstantMillis>§request_sent_bytes: u64§awaiting_round_first_response: bool§received_byte_count: u64§received_byte_count_at_request: u64§request_response_bytes_per_second: u64§data_bytes_per_second: u64§inherited_eifr: Option<u64>§fast_rate_rounds: u8§very_slow_rate_rounds: u8

Implementations§

Source§

impl IncomingResourceState

Source

pub fn contiguous_byte_len(&self) -> usize

The consecutive frontier in bytes: everything placed before the first gap.

Trait Implementations§

Source§

impl Clone for IncomingResourceState

Source§

fn clone(&self) -> IncomingResourceState

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for IncomingResourceState

Source§

impl Debug for IncomingResourceState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for IncomingResourceState

The vacant-slot value for fixed-capacity tables to initialize with, never a live transfer’s state; accept writes every field.

Source§

fn default() -> IncomingResourceState

Returns the “default value” for a type. Read more
Source§

impl Eq for IncomingResourceState

Source§

impl PartialEq for IncomingResourceState

Source§

fn eq(&self, other: &IncomingResourceState) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ResourceRowState for IncomingResourceState

Source§

impl StructuralPartialEq for IncomingResourceState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.