pub struct Frame { /* private fields */ }Expand description
Represents a frame on the page
Implementations§
Source§impl Frame
impl Frame
pub fn new(id: FrameId) -> Self
pub fn with_parent(id: FrameId, parent: &mut Frame) -> Self
pub fn get_isolated_world_name(&self) -> &String
pub fn parent_id(&self) -> Option<&FrameId>
pub fn id(&self) -> &FrameId
pub fn url(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
pub fn main_world(&self) -> &DOMWorld
pub fn secondary_world(&self) -> &DOMWorld
pub fn lifecycle_events(&self) -> &HashSet<MethodId>
pub fn http_request(&self) -> Option<&Arc<HttpRequest>>
pub fn is_loaded(&self) -> bool
Sourcepub fn is_network_idle(&self) -> bool
pub fn is_network_idle(&self) -> bool
Main frame + child frames have fired the networkIdle lifecycle event.
Sourcepub fn is_network_almost_idle(&self) -> bool
pub fn is_network_almost_idle(&self) -> bool
Main frame + child frames have fired the networkAlmostIdle lifecycle event.
pub fn clear_contexts(&mut self)
pub fn destroy_context(&mut self, ctx_unique_id: &str)
pub fn execution_context(&self) -> Option<ExecutionContextId>
pub fn set_request(&mut self, request: HttpRequest)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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