pub(crate) struct InProgressLoad {Show 14 fields
pub(crate) pipeline_id: PipelineId,
pub(crate) browsing_context_id: BrowsingContextId,
pub(crate) webview_id: WebViewId,
pub(crate) parent_info: Option<PipelineId>,
pub(crate) opener: Option<BrowsingContextId>,
pub(crate) viewport_details: ViewportDetails,
pub(crate) activity: DocumentActivity,
pub(crate) throttled: bool,
pub(crate) origin: MutableOrigin,
pub(crate) navigation_start: CrossProcessInstant,
pub(crate) canceller: FetchCanceller,
pub(crate) load_data: LoadData,
pub(crate) url_list: Vec<ServoUrl>,
pub(crate) theme: Theme,
}Expand description
A document load that is in the process of fetching the requested resource. Contains data that will need to be present when the document and frame tree entry are created, but is only easily available at initiation of the load and on a push basis (so some data will be updated according to future resize events, viewport changes, etc.)
Fields§
§pipeline_id: PipelineIdThe pipeline which requested this load.
browsing_context_id: BrowsingContextIdThe browsing context being loaded into.
webview_id: WebViewIdThe top level ancestor browsing context.
parent_info: Option<PipelineId>The parent pipeline and frame type associated with this load, if any.
opener: Option<BrowsingContextId>The opener, if this is an auxiliary.
viewport_details: ViewportDetailsThe current window size associated with this pipeline.
activity: DocumentActivityThe activity level of the document (inactive, active or fully active).
throttled: boolWindow is throttled, running timers at a heavily limited rate.
origin: MutableOriginThe origin for the document
Timestamp reporting the time when the browser started this load.
canceller: FetchCancellerFor cancelling the fetch
load_data: LoadDataThe LoadData associated with this load.
url_list: Vec<ServoUrl>A list of URL to keep track of all the redirects that have happened during this load.
theme: ThemeThe Theme to use for this page, once it loads.
Implementations§
Source§impl InProgressLoad
impl InProgressLoad
Sourcepub(crate) fn new(
id: PipelineId,
browsing_context_id: BrowsingContextId,
webview_id: WebViewId,
parent_info: Option<PipelineId>,
opener: Option<BrowsingContextId>,
viewport_details: ViewportDetails,
theme: Theme,
origin: MutableOrigin,
load_data: LoadData,
) -> InProgressLoad
pub(crate) fn new( id: PipelineId, browsing_context_id: BrowsingContextId, webview_id: WebViewId, parent_info: Option<PipelineId>, opener: Option<BrowsingContextId>, viewport_details: ViewportDetails, theme: Theme, origin: MutableOrigin, load_data: LoadData, ) -> InProgressLoad
Create a new InProgressLoad object.
pub(crate) fn request_builder(&mut self) -> RequestBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InProgressLoad
impl !RefUnwindSafe for InProgressLoad
impl !Send for InProgressLoad
impl !Sync for InProgressLoad
impl Unpin for InProgressLoad
impl !UnwindSafe for InProgressLoad
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
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