pub struct NetworkConditions<'a> { /* private fields */ }Implementations§
Source§impl<'a> NetworkConditions<'a>
impl<'a> NetworkConditions<'a>
pub fn builder( urlPattern: impl Into<Cow<'a, str>>, latency: f64, downloadThroughput: f64, uploadThroughput: f64, ) -> NetworkConditionsBuilder<'a>
pub fn urlPattern(&self) -> &str
pub fn latency(&self) -> f64
pub fn downloadThroughput(&self) -> f64
pub fn uploadThroughput(&self) -> f64
pub fn connectionType(&self) -> Option<&ConnectionType>
pub fn packetLoss(&self) -> Option<f64>
pub fn packetQueueLength(&self) -> Option<u64>
pub fn packetReordering(&self) -> Option<bool>
pub fn offline(&self) -> Option<bool>
Trait Implementations§
Source§impl<'a> Clone for NetworkConditions<'a>
impl<'a> Clone for NetworkConditions<'a>
Source§fn clone(&self) -> NetworkConditions<'a>
fn clone(&self) -> NetworkConditions<'a>
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<'a> Debug for NetworkConditions<'a>
impl<'a> Debug for NetworkConditions<'a>
Source§impl<'a> Default for NetworkConditions<'a>
impl<'a> Default for NetworkConditions<'a>
Source§fn default() -> NetworkConditions<'a>
fn default() -> NetworkConditions<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for NetworkConditions<'a>
impl<'de, 'a> Deserialize<'de> for NetworkConditions<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for NetworkConditions<'a>
impl<'a> RefUnwindSafe for NetworkConditions<'a>
impl<'a> Send for NetworkConditions<'a>
impl<'a> Sync for NetworkConditions<'a>
impl<'a> Unpin for NetworkConditions<'a>
impl<'a> UnsafeUnpin for NetworkConditions<'a>
impl<'a> UnwindSafe for NetworkConditions<'a>
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