Struct script::dom::servoparser::prefetch::PrefetchSink
source · struct PrefetchSink {
origin: ImmutableOrigin,
pipeline_id: PipelineId,
document_url: ServoUrl,
base_url: Option<ServoUrl>,
referrer: Referrer,
referrer_policy: Option<ReferrerPolicy>,
resource_threads: ResourceThreads,
prefetching: bool,
}
Fields§
§origin: ImmutableOrigin
§pipeline_id: PipelineId
§document_url: ServoUrl
§base_url: Option<ServoUrl>
§referrer: Referrer
§referrer_policy: Option<ReferrerPolicy>
§resource_threads: ResourceThreads
§prefetching: bool
Implementations§
source§impl PrefetchSink
impl PrefetchSink
fn get_attr<'a>(&'a self, tag: &'a Tag, name: LocalName) -> Option<&'a Attribute>
fn get_url(&self, tag: &Tag, name: LocalName) -> Option<ServoUrl>
fn get_referrer_policy(
&self,
tag: &Tag,
name: LocalName
) -> Option<ReferrerPolicy>
fn get_cors_settings(&self, tag: &Tag, name: LocalName) -> Option<CorsSettings>
Trait Implementations§
source§impl JSTraceable for PrefetchSink
impl JSTraceable for PrefetchSink
source§impl TokenSink for PrefetchSink
impl TokenSink for PrefetchSink
type Handle = PrefetchHandle
source§fn process_token(
&mut self,
token: Token,
_line_number: u64
) -> TokenSinkResult<PrefetchHandle>
fn process_token(
&mut self,
token: Token,
_line_number: u64
) -> TokenSinkResult<PrefetchHandle>
Process a token.
fn end(&mut self)
source§fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
Used in the markup declaration open state. By default, this always
returns false and thus all CDATA sections are tokenized as bogus
comments.
https://html.spec.whatwg.org/multipage/#markup-declaration-open-state
Auto Trait Implementations§
impl !RefUnwindSafe for PrefetchSink
impl Send for PrefetchSink
impl !Sync for PrefetchSink
impl Unpin for PrefetchSink
impl UnwindSafe for PrefetchSink
Blanket Implementations§
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> 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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert