pub struct AddScreen {
pub method: AddScreenMethod,
pub params: AddScreenParams,
}Expand description
Add a new screen to the device. Only supported in headless mode. addScreen
Fields§
§method: AddScreenMethod§params: AddScreenParamsImplementations§
Source§impl AddScreen
impl AddScreen
pub const IDENTIFIER: &'static str = "Emulation.addScreen"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl CommandResult for AddScreen
impl CommandResult for AddScreen
type Result = AddScreenResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl<'de> Deserialize<'de> for AddScreen
impl<'de> Deserialize<'de> for AddScreen
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<AddScreen> for BrowserProtocolCommands
impl From<AddScreen> for BrowserProtocolCommands
Source§impl From<AddScreen> for EmulationCommands
impl From<AddScreen> for EmulationCommands
Source§impl TryFrom<BrowserProtocolCommands> for AddScreen
impl TryFrom<BrowserProtocolCommands> for AddScreen
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, <AddScreen as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <AddScreen as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<EmulationCommands> for AddScreen
impl TryFrom<EmulationCommands> for AddScreen
Source§type Error = EmulationCommands
type Error = EmulationCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: EmulationCommands,
) -> Result<Self, <AddScreen as TryFrom<EmulationCommands>>::Error>
fn try_from( e: EmulationCommands, ) -> Result<Self, <AddScreen as TryFrom<EmulationCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for AddScreen
Auto Trait Implementations§
impl Freeze for AddScreen
impl RefUnwindSafe for AddScreen
impl Send for AddScreen
impl Sync for AddScreen
impl Unpin for AddScreen
impl UnsafeUnpin for AddScreen
impl UnwindSafe for AddScreen
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