pub enum TargetMessage {
Command(CommandMessage),
MainFrame(Sender<Option<FrameId>>),
AllFrames(Sender<Vec<FrameId>>),
Url(GetUrl),
Name(GetName),
Parent(GetParent),
WaitForNavigation(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
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more