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 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
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
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