pub struct EmulateNetworkConditionsCommandBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl EmulateNetworkConditionsCommandBuilder
impl EmulateNetworkConditionsCommandBuilder
Sourcepub fn latency(&mut self, v: f64) -> &mut Self
pub fn latency(&mut self, v: f64) -> &mut Self
Minimum latency from request sent to response headers received (ms).
Sourcepub fn download_throughput(&mut self, v: f64) -> &mut Self
pub fn download_throughput(&mut self, v: f64) -> &mut Self
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
Sourcepub fn upload_throughput(&mut self, v: f64) -> &mut Self
pub fn upload_throughput(&mut self, v: f64) -> &mut Self
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
Sourcepub fn connection_type(&mut self, v: ConnectionType) -> &mut Self
pub fn connection_type(&mut self, v: ConnectionType) -> &mut Self
Connection type if known.
pub fn build(&mut self) -> Result<EmulateNetworkConditionsCommand, &'static str>
Trait Implementations§
Source§impl Clone for EmulateNetworkConditionsCommandBuilder
impl Clone for EmulateNetworkConditionsCommandBuilder
Source§fn clone(&self) -> EmulateNetworkConditionsCommandBuilder
fn clone(&self) -> EmulateNetworkConditionsCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for EmulateNetworkConditionsCommandBuilder
impl RefUnwindSafe for EmulateNetworkConditionsCommandBuilder
impl Send for EmulateNetworkConditionsCommandBuilder
impl Sync for EmulateNetworkConditionsCommandBuilder
impl Unpin for EmulateNetworkConditionsCommandBuilder
impl UnwindSafe for EmulateNetworkConditionsCommandBuilder
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