struct WebPageContentProtocolHandler {
url: String,
scheme: String,
}Fields§
§url: String§scheme: StringTrait Implementations§
Source§impl ProtocolHandler for WebPageContentProtocolHandler
impl ProtocolHandler for WebPageContentProtocolHandler
Source§fn load(
&self,
request: &mut Request,
_done_chan: &mut DoneChannel,
context: &FetchContext,
) -> Pin<Box<dyn Future<Output = Response> + Send>>
fn load( &self, request: &mut Request, _done_chan: &mut DoneChannel, context: &FetchContext, ) -> Pin<Box<dyn Future<Output = Response> + Send>>
Source§fn privileged_paths(&self) -> &'static [&'static str]
fn privileged_paths(&self) -> &'static [&'static str]
A list of schema-less URLs that can be resolved against this handler’s
scheme. These URLs will be granted access to the
navigator.servo
interface to perform privileged operations that manipulate Servo internals.Source§fn is_fetchable(&self) -> bool
fn is_fetchable(&self) -> bool
Specify if resources served by that protocol can be retrieved
with
fetch() without no-cors mode to allow the caller direct
access to the resource content.Auto Trait Implementations§
impl Freeze for WebPageContentProtocolHandler
impl RefUnwindSafe for WebPageContentProtocolHandler
impl Send for WebPageContentProtocolHandler
impl Sync for WebPageContentProtocolHandler
impl Unpin for WebPageContentProtocolHandler
impl UnwindSafe for WebPageContentProtocolHandler
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>
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