Struct cyfs_base::TrafficReceipt
source · [−]pub struct TrafficReceipt {
pub up_bytes: u64,
pub down_bytes: u64,
pub total_package: u64,
pub max_speed: Option<u32>,
pub min_speed: Option<u32>,
pub avg_ping_ms: Option<u16>,
pub stream_count: Option<u32>,
pub failed_stream_count: Option<u32>,
pub break_stream_count: Option<u32>,
}
Fields
up_bytes: u64
down_bytes: u64
total_package: u64
max_speed: Option<u32>
min_speed: Option<u32>
avg_ping_ms: Option<u16>
stream_count: Option<u32>
failed_stream_count: Option<u32>
break_stream_count: Option<u32>
Trait Implementations
sourceimpl Clone for TrafficReceipt
impl Clone for TrafficReceipt
sourcefn clone(&self) -> TrafficReceipt
fn clone(&self) -> TrafficReceipt
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 moresourceimpl Debug for TrafficReceipt
impl Debug for TrafficReceipt
sourceimpl<'de> RawDecode<'de> for TrafficReceipt
impl<'de> RawDecode<'de> for TrafficReceipt
fn raw_decode(_buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for TrafficReceipt
impl RawEncode for TrafficReceipt
fn raw_measure(&self, _purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>(
&self,
_buf: &'a mut [u8],
_purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations
impl RefUnwindSafe for TrafficReceipt
impl Send for TrafficReceipt
impl Sync for TrafficReceipt
impl Unpin for TrafficReceipt
impl UnwindSafe for TrafficReceipt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more