pub struct NewBrowsingContextInfo {
pub parent_pipeline_id: Option<PipelineId>,
pub is_private: bool,
pub inherited_secure_context: Option<bool>,
pub throttled: bool,
}
Expand description
Because a browsing context is only constructed once the document that’s going to be in it becomes active (i.e. not when a pipeline is spawned), some values needed in browsing context are not easily available at the point of constructing it. Thus, every time a pipeline is created for a browsing context which doesn’t exist yet, these values needed for the new browsing context are stored here so that they may be available later.
Fields§
§parent_pipeline_id: Option<PipelineId>
The parent pipeline that contains this browsing context. None
if this
is a top level browsing context.
is_private: bool
Whether this browsing context is in private browsing mode.
inherited_secure_context: Option<bool>
Whether this browsing context inherits a secure context.
throttled: bool
Whether this browsing context should be throttled, using less resources by stopping animations and running timers at a heavily limited rate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewBrowsingContextInfo
impl RefUnwindSafe for NewBrowsingContextInfo
impl Send for NewBrowsingContextInfo
impl Sync for NewBrowsingContextInfo
impl Unpin for NewBrowsingContextInfo
impl UnwindSafe for NewBrowsingContextInfo
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
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>
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>
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