pub struct EnableNetworkEmulationOptions { /* private fields */ }
Implementations§
Source§impl EnableNetworkEmulationOptions
impl EnableNetworkEmulationOptions
pub fn new( download_throughput: Option<u32>, latency: Option<u32>, offline: Option<bool>, upload_throughput: Option<u32>, ) -> EnableNetworkEmulationOptions
pub fn download_throughput(&self) -> Option<u32>
pub fn set_download_throughput(&mut self, value: Option<u32>)
pub fn latency(&self) -> Option<u32>
pub fn set_latency(&mut self, value: Option<u32>)
pub fn offline(&self) -> Option<bool>
pub fn set_offline(&mut self, value: Option<bool>)
pub fn upload_throughput(&self) -> Option<u32>
pub fn set_upload_throughput(&mut self, value: Option<u32>)
Trait Implementations§
Source§impl Clone for EnableNetworkEmulationOptions
impl Clone for EnableNetworkEmulationOptions
Source§fn clone(&self) -> EnableNetworkEmulationOptions
fn clone(&self) -> EnableNetworkEmulationOptions
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 From<EnableNetworkEmulationOptions> for JsValue
impl From<EnableNetworkEmulationOptions> for JsValue
Source§fn from(value: EnableNetworkEmulationOptions) -> Self
fn from(value: EnableNetworkEmulationOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnableNetworkEmulationOptions
impl PartialEq for EnableNetworkEmulationOptions
Source§fn eq(&self, other: &EnableNetworkEmulationOptions) -> bool
fn eq(&self, other: &EnableNetworkEmulationOptions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl RefFromWasmAbi for EnableNetworkEmulationOptions
impl RefFromWasmAbi for EnableNetworkEmulationOptions
Source§type Anchor = RcRef<EnableNetworkEmulationOptions>
type Anchor = RcRef<EnableNetworkEmulationOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for EnableNetworkEmulationOptions
impl VectorFromWasmAbi for EnableNetworkEmulationOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[EnableNetworkEmulationOptions]>
Source§impl VectorIntoJsValue for EnableNetworkEmulationOptions
impl VectorIntoJsValue for EnableNetworkEmulationOptions
fn vector_into_jsvalue(vector: Box<[EnableNetworkEmulationOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for EnableNetworkEmulationOptions
impl VectorIntoWasmAbi for EnableNetworkEmulationOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[EnableNetworkEmulationOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for EnableNetworkEmulationOptions
impl WasmDescribeVector for EnableNetworkEmulationOptions
impl Eq for EnableNetworkEmulationOptions
impl StructuralPartialEq for EnableNetworkEmulationOptions
impl SupportsConstructor for EnableNetworkEmulationOptions
impl SupportsInstanceProperty for EnableNetworkEmulationOptions
impl SupportsStaticProperty for EnableNetworkEmulationOptions
Auto Trait Implementations§
impl Freeze for EnableNetworkEmulationOptions
impl RefUnwindSafe for EnableNetworkEmulationOptions
impl Send for EnableNetworkEmulationOptions
impl Sync for EnableNetworkEmulationOptions
impl Unpin for EnableNetworkEmulationOptions
impl UnwindSafe for EnableNetworkEmulationOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.