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> 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