Struct chromiumoxide::handler::target::Target [−][src]
Implementations
impl Target
[src]
pub fn new(
info: TargetInfo,
config: TargetConfig,
browser_context: BrowserContext
) -> Self
[src]
info: TargetInfo,
config: TargetConfig,
browser_context: BrowserContext
) -> Self
Create a new target instance with TargetInfo
after a
CreateTargetParams
request.
pub fn set_session_id(&mut self, id: SessionId)
[src]
pub fn session_id(&self) -> Option<&SessionId>
[src]
pub fn browser_context(&self) -> &BrowserContext
[src]
pub fn session_id_mut(&mut self) -> &mut Option<SessionId>
[src]
pub fn target_id(&self) -> &TargetId
[src]
The identifier for this target
pub fn type(&self) -> &TargetType
[src]
The type of this target
pub fn is_initialized(&self) -> bool
[src]
Whether this target is already initialized
pub fn goto(&mut self, req: FrameNavigationRequest)
[src]
Navigate a frame
pub fn is_page(&self) -> bool
[src]
pub fn browser_context_id(&self) -> Option<&BrowserContextId>
[src]
pub fn info(&self) -> &TargetInfo
[src]
pub fn opener(&self) -> Option<&TargetId>
[src]
Get the target that opened this target. Top-level targets return None
.
pub fn frame_manager_mut(&mut self) -> &mut FrameManager
[src]
pub fn event_listeners_mut(&mut self) -> &mut EventListeners
[src]
pub fn on_response(&mut self, resp: Response, method: &str)
[src]
Received a response to a command issued by this target
pub fn on_event(&mut self, event: CdpEventMessage)
[src]
pub fn set_initiator(&mut self, tx: Sender<Result<Page>>)
[src]
Set the sender half of the channel who requested the creation of this target
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Target
impl Send for Target
impl !Sync for Target
impl Unpin for Target
impl !UnwindSafe for Target
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,