pub struct Crash {
pub method: CrashMethod,
pub params: CrashParams,
}Expand description
Crashes browser on the main thread. crash
Fields§
§method: CrashMethod§params: CrashParamsImplementations§
Source§impl Crash
impl Crash
pub const IDENTIFIER: &'static str = "Browser.crash"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for Crash
impl CommandResult for Crash
type Result = CrashResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for Crash
impl<'de> Deserialize<'de> for Crash
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<Crash> for BrowserCommands
impl From<Crash> for BrowserCommands
Source§impl From<Crash> for BrowserProtocolCommands
impl From<Crash> for BrowserProtocolCommands
Source§impl TryFrom<BrowserCommands> for Crash
impl TryFrom<BrowserCommands> for Crash
Source§type Error = BrowserCommands
type Error = BrowserCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserCommands,
) -> Result<Self, <Crash as TryFrom<BrowserCommands>>::Error>
fn try_from( e: BrowserCommands, ) -> Result<Self, <Crash as TryFrom<BrowserCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<BrowserProtocolCommands> for Crash
impl TryFrom<BrowserProtocolCommands> for Crash
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, <Crash as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <Crash as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for Crash
Auto Trait Implementations§
impl Freeze for Crash
impl RefUnwindSafe for Crash
impl Send for Crash
impl Sync for Crash
impl Unpin for Crash
impl UnsafeUnpin for Crash
impl UnwindSafe for Crash
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