pub struct DocumentConfig {
pub viewport: Option<Viewport>,
pub base_url: Option<String>,
pub ua_stylesheets: Option<Vec<String>>,
pub net_provider: Option<Arc<dyn NetProvider<Resource>>>,
pub navigation_provider: Option<Arc<dyn NavigationProvider>>,
pub shell_provider: Option<Arc<dyn ShellProvider>>,
pub html_parser_provider: Option<Arc<dyn HtmlParserProvider>>,
pub font_ctx: Option<FontContext>,
}Expand description
Options used when constructing a BaseDocument
Fields§
§viewport: Option<Viewport>The initial Viewport
base_url: Option<String>The base url which relative URLs are resolved against
ua_stylesheets: Option<Vec<String>>User Agent stylesheets
net_provider: Option<Arc<dyn NetProvider<Resource>>>Net provider to handle network requests for resources
Navigation provider to handle link clicks and form submissions
shell_provider: Option<Arc<dyn ShellProvider>>Shell provider to redraw requests, clipboard, etc
html_parser_provider: Option<Arc<dyn HtmlParserProvider>>HTML parser provider. Used to parse HTML for setInnerHTML
font_ctx: Option<FontContext>Parley FontContext
Trait Implementations§
Source§impl Default for DocumentConfig
impl Default for DocumentConfig
Source§fn default() -> DocumentConfig
fn default() -> DocumentConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocumentConfig
impl !RefUnwindSafe for DocumentConfig
impl !Send for DocumentConfig
impl !Sync for DocumentConfig
impl Unpin for DocumentConfig
impl !UnwindSafe for DocumentConfig
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> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.