pub(crate) struct LinkProcessingOptions {Show 13 fields
pub(crate) href: String,
pub(crate) destination: Destination,
pub(crate) integrity: String,
pub(crate) link_type: String,
pub(crate) cryptographic_nonce_metadata: String,
pub(crate) cross_origin: Option<CorsSettings>,
pub(crate) referrer_policy: ReferrerPolicy,
pub(crate) policy_container: PolicyContainer,
pub(crate) source_set: Option<()>,
pub(crate) base_url: ServoUrl,
pub(crate) origin: ImmutableOrigin,
pub(crate) insecure_requests_policy: InsecureRequestsPolicy,
pub(crate) has_trustworthy_ancestor_origin: bool,
}Expand description
Fields§
§href: String§destination: Destination§integrity: String§link_type: String§cryptographic_nonce_metadata: String§cross_origin: Option<CorsSettings>§referrer_policy: ReferrerPolicy§policy_container: PolicyContainer§source_set: Option<()>§base_url: ServoUrl§origin: ImmutableOrigin§insecure_requests_policy: InsecureRequestsPolicy§has_trustworthy_ancestor_origin: boolImplementations§
Source§impl LinkProcessingOptions
impl LinkProcessingOptions
Sourcefn apply_link_options_from_parsed_header(
&mut self,
link_object: &LinkHeader,
rel: &str,
) -> bool
fn apply_link_options_from_parsed_header( &mut self, link_object: &LinkHeader, rel: &str, ) -> bool
Sourcefn process_link_header(self, rel: &str, document: &Document)
fn process_link_header(self, rel: &str, document: &Document)
Sourcepub(crate) fn translate_a_preload_destination(
potential_destination: &str,
) -> Option<Destination>
pub(crate) fn translate_a_preload_destination( potential_destination: &str, ) -> Option<Destination>
Sourcepub(crate) fn create_link_request(
self,
webview_id: WebViewId,
) -> Option<RequestBuilder>
pub(crate) fn create_link_request( self, webview_id: WebViewId, ) -> Option<RequestBuilder>
Sourcepub(crate) fn type_matches_destination(&self) -> bool
pub(crate) fn type_matches_destination(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkProcessingOptions
impl RefUnwindSafe for LinkProcessingOptions
impl Send for LinkProcessingOptions
impl Sync for LinkProcessingOptions
impl Unpin for LinkProcessingOptions
impl UnwindSafe for LinkProcessingOptions
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> 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>
Creates a filterable data provider with the given name for debugging. 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>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
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