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 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> 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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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 moresource§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