pub struct OverrideNetworkState {
pub method: OverrideNetworkStateMethod,
pub params: OverrideNetworkStateParams,
}Expand description
Override the state of navigator.onLine and navigator.connection. overrideNetworkState
Fields§
§method: OverrideNetworkStateMethod§params: OverrideNetworkStateParamsImplementations§
Source§impl OverrideNetworkState
impl OverrideNetworkState
pub fn builder() -> OverrideNetworkStateBuilder
Source§impl OverrideNetworkState
impl OverrideNetworkState
pub const IDENTIFIER: &'static str = "Network.overrideNetworkState"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for OverrideNetworkState
impl Clone for OverrideNetworkState
Source§fn clone(&self) -> OverrideNetworkState
fn clone(&self) -> OverrideNetworkState
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 CommandResult for OverrideNetworkState
impl CommandResult for OverrideNetworkState
type Result = OverrideNetworkStateResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for OverrideNetworkState
impl Debug for OverrideNetworkState
Source§impl<'de> Deserialize<'de> for OverrideNetworkState
impl<'de> Deserialize<'de> for OverrideNetworkState
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
Source§impl From<OverrideNetworkState> for BrowserProtocolCommands
impl From<OverrideNetworkState> for BrowserProtocolCommands
Source§fn from(v: OverrideNetworkState) -> Self
fn from(v: OverrideNetworkState) -> Self
Converts to this type from the input type.
Source§impl From<OverrideNetworkState> for Command
impl From<OverrideNetworkState> for Command
Source§fn from(v: OverrideNetworkState) -> Self
fn from(v: OverrideNetworkState) -> Self
Converts to this type from the input type.
Source§impl From<OverrideNetworkState> for NetworkCommands
impl From<OverrideNetworkState> for NetworkCommands
Source§fn from(v: OverrideNetworkState) -> Self
fn from(v: OverrideNetworkState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OverrideNetworkState
impl PartialEq for OverrideNetworkState
Source§impl Serialize for OverrideNetworkState
impl Serialize for OverrideNetworkState
Source§impl TryFrom<BrowserProtocolCommands> for OverrideNetworkState
impl TryFrom<BrowserProtocolCommands> for OverrideNetworkState
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <OverrideNetworkState as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <OverrideNetworkState as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for OverrideNetworkState
impl TryFrom<Command> for OverrideNetworkState
Source§impl TryFrom<NetworkCommands> for OverrideNetworkState
impl TryFrom<NetworkCommands> for OverrideNetworkState
Source§type Error = NetworkCommands
type Error = NetworkCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: NetworkCommands,
) -> Result<Self, <OverrideNetworkState as TryFrom<NetworkCommands>>::Error>
fn try_from( e: NetworkCommands, ) -> Result<Self, <OverrideNetworkState as TryFrom<NetworkCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for OverrideNetworkState
Auto Trait Implementations§
impl Freeze for OverrideNetworkState
impl RefUnwindSafe for OverrideNetworkState
impl Send for OverrideNetworkState
impl Sync for OverrideNetworkState
impl Unpin for OverrideNetworkState
impl UnsafeUnpin for OverrideNetworkState
impl UnwindSafe for OverrideNetworkState
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