pub enum TargetMessage {
Command(CommandMessage),
MainFrame(Sender<Option<FrameId>>),
AllFrames(Sender<Vec<FrameId>>),
Url(GetUrl),
Name(GetName),
Parent(GetParent),
WaitForNavigation(Sender<ArcHttpRequest>),
WaitForNetworkIdle(Sender<ArcHttpRequest>),
WaitForNetworkAlmostIdle(Sender<ArcHttpRequest>),
AddEventListener(EventListenerRequest),
GetExecutionContext(GetExecutionContext),
Authenticate(Credentials),
}Variants§
Command(CommandMessage)
Execute a command within the session of this target
MainFrame(Sender<Option<FrameId>>)
Return the main frame of this target’s page
AllFrames(Sender<Vec<FrameId>>)
Return all the frames of this target’s page
Url(GetUrl)
Return the url if available
Name(GetName)
Return the name if available
Parent(GetParent)
Return the parent id of a frame
A Message that resolves when the frame finished loading a new url
WaitForNetworkIdle(Sender<ArcHttpRequest>)
A Message that resolves when the frame network is idle
WaitForNetworkAlmostIdle(Sender<ArcHttpRequest>)
A Message that resolves when the frame network is almost idle
AddEventListener(EventListenerRequest)
A request to submit a new listener that gets notified with every received event
GetExecutionContext(GetExecutionContext)
Get the ExecutionContext if available
Authenticate(Credentials)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TargetMessage
impl !RefUnwindSafe for TargetMessage
impl Send for TargetMessage
impl !Sync for TargetMessage
impl Unpin for TargetMessage
impl !UnwindSafe for TargetMessage
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