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: boolWhether this browsing context is in private browsing mode.
inherited_secure_context: Option<bool>Whether this browsing context inherits a secure context.
throttled: boolWhether 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