pub struct ConnectionWithSpeed {
pub connection: Connection,
pub upload: Option<u64>,
pub download: Option<u64>,
}Fields§
§connection: Connection§upload: Option<u64>§download: Option<u64>Trait Implementations§
Source§impl Clone for ConnectionWithSpeed
impl Clone for ConnectionWithSpeed
Source§fn clone(&self) -> ConnectionWithSpeed
fn clone(&self) -> ConnectionWithSpeed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionWithSpeed
impl Debug for ConnectionWithSpeed
Source§impl<'de> Deserialize<'de> for ConnectionWithSpeed
impl<'de> Deserialize<'de> for ConnectionWithSpeed
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 Ord for ConnectionWithSpeed
impl Ord for ConnectionWithSpeed
Source§fn cmp(&self, other: &ConnectionWithSpeed) -> Ordering
fn cmp(&self, other: &ConnectionWithSpeed) -> Ordering
1.21.0 (const: unstable) · 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 ConnectionWithSpeed
impl PartialEq for ConnectionWithSpeed
Source§fn eq(&self, other: &ConnectionWithSpeed) -> bool
fn eq(&self, other: &ConnectionWithSpeed) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ConnectionWithSpeed
impl PartialOrd for ConnectionWithSpeed
Source§impl Serialize for ConnectionWithSpeed
impl Serialize for ConnectionWithSpeed
impl Eq for ConnectionWithSpeed
impl StructuralPartialEq for ConnectionWithSpeed
Auto Trait Implementations§
impl Freeze for ConnectionWithSpeed
impl RefUnwindSafe for ConnectionWithSpeed
impl Send for ConnectionWithSpeed
impl Sync for ConnectionWithSpeed
impl Unpin for ConnectionWithSpeed
impl UnsafeUnpin for ConnectionWithSpeed
impl UnwindSafe for ConnectionWithSpeed
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