pub enum TargetCommands {
Show 18 variants
ActivateTarget(ActivateTarget),
AttachToTarget(AttachToTarget),
AttachToBrowserTarget(AttachToBrowserTarget),
CloseTarget(CloseTarget),
ExposeDevToolsProtocol(ExposeDevToolsProtocol),
CreateBrowserContext(CreateBrowserContext),
GetBrowserContexts(GetBrowserContexts),
CreateTarget(CreateTarget),
DetachFromTarget(DetachFromTarget),
DisposeBrowserContext(DisposeBrowserContext),
GetTargetInfo(GetTargetInfo),
GetTargets(GetTargets),
SetAutoAttach(SetAutoAttach),
AutoAttachRelated(AutoAttachRelated),
SetDiscoverTargets(SetDiscoverTargets),
SetRemoteLocations(SetRemoteLocations),
GetDevToolsTarget(GetDevToolsTarget),
OpenDevTools(OpenDevTools),
}Variants§
ActivateTarget(ActivateTarget)
AttachToTarget(AttachToTarget)
AttachToBrowserTarget(AttachToBrowserTarget)
CloseTarget(CloseTarget)
ExposeDevToolsProtocol(ExposeDevToolsProtocol)
CreateBrowserContext(CreateBrowserContext)
GetBrowserContexts(GetBrowserContexts)
CreateTarget(CreateTarget)
DetachFromTarget(DetachFromTarget)
DisposeBrowserContext(DisposeBrowserContext)
GetTargetInfo(GetTargetInfo)
GetTargets(GetTargets)
SetAutoAttach(SetAutoAttach)
AutoAttachRelated(AutoAttachRelated)
SetDiscoverTargets(SetDiscoverTargets)
SetRemoteLocations(SetRemoteLocations)
GetDevToolsTarget(GetDevToolsTarget)
OpenDevTools(OpenDevTools)
Implementations§
Source§impl TargetCommands
impl TargetCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for TargetCommands
impl Clone for TargetCommands
Source§fn clone(&self) -> TargetCommands
fn clone(&self) -> TargetCommands
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 Debug for TargetCommands
impl Debug for TargetCommands
Source§impl<'de> Deserialize<'de> for TargetCommands
impl<'de> Deserialize<'de> for TargetCommands
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<ActivateTarget> for TargetCommands
impl From<ActivateTarget> for TargetCommands
Source§fn from(v: ActivateTarget) -> Self
fn from(v: ActivateTarget) -> Self
Converts to this type from the input type.
Source§impl From<AttachToBrowserTarget> for TargetCommands
impl From<AttachToBrowserTarget> for TargetCommands
Source§fn from(v: AttachToBrowserTarget) -> Self
fn from(v: AttachToBrowserTarget) -> Self
Converts to this type from the input type.
Source§impl From<AttachToTarget> for TargetCommands
impl From<AttachToTarget> for TargetCommands
Source§fn from(v: AttachToTarget) -> Self
fn from(v: AttachToTarget) -> Self
Converts to this type from the input type.
Source§impl From<AutoAttachRelated> for TargetCommands
impl From<AutoAttachRelated> for TargetCommands
Source§fn from(v: AutoAttachRelated) -> Self
fn from(v: AutoAttachRelated) -> Self
Converts to this type from the input type.
Source§impl From<CloseTarget> for TargetCommands
impl From<CloseTarget> for TargetCommands
Source§fn from(v: CloseTarget) -> Self
fn from(v: CloseTarget) -> Self
Converts to this type from the input type.
Source§impl From<CreateBrowserContext> for TargetCommands
impl From<CreateBrowserContext> for TargetCommands
Source§fn from(v: CreateBrowserContext) -> Self
fn from(v: CreateBrowserContext) -> Self
Converts to this type from the input type.
Source§impl From<CreateTarget> for TargetCommands
impl From<CreateTarget> for TargetCommands
Source§fn from(v: CreateTarget) -> Self
fn from(v: CreateTarget) -> Self
Converts to this type from the input type.
Source§impl From<DetachFromTarget> for TargetCommands
impl From<DetachFromTarget> for TargetCommands
Source§fn from(v: DetachFromTarget) -> Self
fn from(v: DetachFromTarget) -> Self
Converts to this type from the input type.
Source§impl From<DisposeBrowserContext> for TargetCommands
impl From<DisposeBrowserContext> for TargetCommands
Source§fn from(v: DisposeBrowserContext) -> Self
fn from(v: DisposeBrowserContext) -> Self
Converts to this type from the input type.
Source§impl From<ExposeDevToolsProtocol> for TargetCommands
impl From<ExposeDevToolsProtocol> for TargetCommands
Source§fn from(v: ExposeDevToolsProtocol) -> Self
fn from(v: ExposeDevToolsProtocol) -> Self
Converts to this type from the input type.
Source§impl From<GetBrowserContexts> for TargetCommands
impl From<GetBrowserContexts> for TargetCommands
Source§fn from(v: GetBrowserContexts) -> Self
fn from(v: GetBrowserContexts) -> Self
Converts to this type from the input type.
Source§impl From<GetDevToolsTarget> for TargetCommands
impl From<GetDevToolsTarget> for TargetCommands
Source§fn from(v: GetDevToolsTarget) -> Self
fn from(v: GetDevToolsTarget) -> Self
Converts to this type from the input type.
Source§impl From<GetTargetInfo> for TargetCommands
impl From<GetTargetInfo> for TargetCommands
Source§fn from(v: GetTargetInfo) -> Self
fn from(v: GetTargetInfo) -> Self
Converts to this type from the input type.
Source§impl From<GetTargets> for TargetCommands
impl From<GetTargets> for TargetCommands
Source§fn from(v: GetTargets) -> Self
fn from(v: GetTargets) -> Self
Converts to this type from the input type.
Source§impl From<OpenDevTools> for TargetCommands
impl From<OpenDevTools> for TargetCommands
Source§fn from(v: OpenDevTools) -> Self
fn from(v: OpenDevTools) -> Self
Converts to this type from the input type.
Source§impl From<SetAutoAttach> for TargetCommands
impl From<SetAutoAttach> for TargetCommands
Source§fn from(v: SetAutoAttach) -> Self
fn from(v: SetAutoAttach) -> Self
Converts to this type from the input type.
Source§impl From<SetDiscoverTargets> for TargetCommands
impl From<SetDiscoverTargets> for TargetCommands
Source§fn from(v: SetDiscoverTargets) -> Self
fn from(v: SetDiscoverTargets) -> Self
Converts to this type from the input type.
Source§impl From<SetRemoteLocations> for TargetCommands
impl From<SetRemoteLocations> for TargetCommands
Source§fn from(v: SetRemoteLocations) -> Self
fn from(v: SetRemoteLocations) -> Self
Converts to this type from the input type.
Source§impl From<TargetCommands> for BrowserProtocolCommands
impl From<TargetCommands> for BrowserProtocolCommands
Source§fn from(v: TargetCommands) -> Self
fn from(v: TargetCommands) -> Self
Converts to this type from the input type.
Source§impl From<TargetCommands> for Command
impl From<TargetCommands> for Command
Source§fn from(v: TargetCommands) -> Self
fn from(v: TargetCommands) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TargetCommands
impl PartialEq for TargetCommands
Source§impl Serialize for TargetCommands
impl Serialize for TargetCommands
Source§impl TryFrom<BrowserProtocolCommands> for TargetCommands
impl TryFrom<BrowserProtocolCommands> for TargetCommands
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, <TargetCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <TargetCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for TargetCommands
impl TryFrom<Command> for TargetCommands
Source§impl TryFrom<TargetCommands> for ActivateTarget
impl TryFrom<TargetCommands> for ActivateTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <ActivateTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <ActivateTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for AttachToBrowserTarget
impl TryFrom<TargetCommands> for AttachToBrowserTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <AttachToBrowserTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <AttachToBrowserTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for AttachToTarget
impl TryFrom<TargetCommands> for AttachToTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <AttachToTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <AttachToTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for AutoAttachRelated
impl TryFrom<TargetCommands> for AutoAttachRelated
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <AutoAttachRelated as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <AutoAttachRelated as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for CloseTarget
impl TryFrom<TargetCommands> for CloseTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <CloseTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <CloseTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for CreateBrowserContext
impl TryFrom<TargetCommands> for CreateBrowserContext
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <CreateBrowserContext as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <CreateBrowserContext as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for CreateTarget
impl TryFrom<TargetCommands> for CreateTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <CreateTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <CreateTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for DetachFromTarget
impl TryFrom<TargetCommands> for DetachFromTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <DetachFromTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <DetachFromTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for DisposeBrowserContext
impl TryFrom<TargetCommands> for DisposeBrowserContext
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <DisposeBrowserContext as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <DisposeBrowserContext as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for ExposeDevToolsProtocol
impl TryFrom<TargetCommands> for ExposeDevToolsProtocol
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <ExposeDevToolsProtocol as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for GetBrowserContexts
impl TryFrom<TargetCommands> for GetBrowserContexts
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <GetBrowserContexts as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <GetBrowserContexts as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for GetDevToolsTarget
impl TryFrom<TargetCommands> for GetDevToolsTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <GetDevToolsTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <GetDevToolsTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for GetTargetInfo
impl TryFrom<TargetCommands> for GetTargetInfo
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <GetTargetInfo as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <GetTargetInfo as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for GetTargets
impl TryFrom<TargetCommands> for GetTargets
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <GetTargets as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <GetTargets as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for OpenDevTools
impl TryFrom<TargetCommands> for OpenDevTools
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <OpenDevTools as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <OpenDevTools as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for SetAutoAttach
impl TryFrom<TargetCommands> for SetAutoAttach
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <SetAutoAttach as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <SetAutoAttach as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for SetDiscoverTargets
impl TryFrom<TargetCommands> for SetDiscoverTargets
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <SetDiscoverTargets as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <SetDiscoverTargets as TryFrom<TargetCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetCommands> for SetRemoteLocations
impl TryFrom<TargetCommands> for SetRemoteLocations
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <SetRemoteLocations as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <SetRemoteLocations as TryFrom<TargetCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for TargetCommands
Auto Trait Implementations§
impl Freeze for TargetCommands
impl RefUnwindSafe for TargetCommands
impl Send for TargetCommands
impl Sync for TargetCommands
impl Unpin for TargetCommands
impl UnsafeUnpin for TargetCommands
impl UnwindSafe for TargetCommands
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