pub struct OverrideNetworkStateBuilder { /* private fields */ }Implementations§
Source§impl OverrideNetworkStateBuilder
impl OverrideNetworkStateBuilder
pub fn offline(self, offline: impl Into<bool>) -> Self
pub fn latency(self, latency: impl Into<f64>) -> Self
pub fn download_throughput(self, download_throughput: impl Into<f64>) -> Self
pub fn upload_throughput(self, upload_throughput: impl Into<f64>) -> Self
pub fn connection_type(self, connection_type: impl Into<ConnectionType>) -> Self
pub fn build(self) -> Result<OverrideNetworkState, String>
Trait Implementations§
Source§impl Clone for OverrideNetworkStateBuilder
impl Clone for OverrideNetworkStateBuilder
Source§fn clone(&self) -> OverrideNetworkStateBuilder
fn clone(&self) -> OverrideNetworkStateBuilder
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 Default for OverrideNetworkStateBuilder
impl Default for OverrideNetworkStateBuilder
Source§fn default() -> OverrideNetworkStateBuilder
fn default() -> OverrideNetworkStateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OverrideNetworkStateBuilder
impl RefUnwindSafe for OverrideNetworkStateBuilder
impl Send for OverrideNetworkStateBuilder
impl Sync for OverrideNetworkStateBuilder
impl Unpin for OverrideNetworkStateBuilder
impl UnsafeUnpin for OverrideNetworkStateBuilder
impl UnwindSafe for OverrideNetworkStateBuilder
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