Struct chromiumoxide::handler::target::Target[][src]

pub struct Target { /* fields omitted */ }

Implementations

impl Target[src]

pub fn new(
    info: TargetInfo,
    config: TargetConfig,
    browser_context: BrowserContext
) -> Self
[src]

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

impl Debug for Target[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,