pub struct EmulateNetworkConditionsCommand { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Activates emulation of network conditions.
Implementations§
Source§impl EmulateNetworkConditionsCommand
impl EmulateNetworkConditionsCommand
pub fn builder() -> EmulateNetworkConditionsCommandBuilder
Sourcepub fn latency(&self) -> f64
pub fn latency(&self) -> f64
Minimum latency from request sent to response headers received (ms).
Sourcepub fn download_throughput(&self) -> f64
pub fn download_throughput(&self) -> f64
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
Sourcepub fn upload_throughput(&self) -> f64
pub fn upload_throughput(&self) -> f64
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
Sourcepub fn connection_type(&self) -> Option<&ConnectionType>
pub fn connection_type(&self) -> Option<&ConnectionType>
Connection type if known.
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsCommand
impl Clone for EmulateNetworkConditionsCommand
Source§fn clone(&self) -> EmulateNetworkConditionsCommand
fn clone(&self) -> EmulateNetworkConditionsCommand
Returns a duplicate 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<'de> Deserialize<'de> for EmulateNetworkConditionsCommand
impl<'de> Deserialize<'de> for EmulateNetworkConditionsCommand
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 Freeze for EmulateNetworkConditionsCommand
impl RefUnwindSafe for EmulateNetworkConditionsCommand
impl Send for EmulateNetworkConditionsCommand
impl Sync for EmulateNetworkConditionsCommand
impl Unpin for EmulateNetworkConditionsCommand
impl UnwindSafe for EmulateNetworkConditionsCommand
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