pub struct ControllerOptions { /* private fields */ }Expand description
Configures a Controller at creation time - its profile, whether it runs
in private mode, and the color painted before content loads. Build one with
the fluent setters and pass it to
Environment::create_controller_with_options.
Implementations§
Source§impl ControllerOptions
impl ControllerOptions
Sourcepub fn profile_name(self, value: impl Into<String>) -> Self
pub fn profile_name(self, value: impl Into<String>) -> Self
Sets the name of the profile the controller uses, isolating its cookies, storage, and cache from other profiles in the same user-data folder.
Sourcepub fn in_private_mode(self, value: bool) -> Self
pub fn in_private_mode(self, value: bool) -> Self
Runs the controller in private (incognito) mode, leaving no profile data on disk.
Sourcepub fn default_background_color(self, color: Color) -> Self
pub fn default_background_color(self, color: Color) -> Self
Sets the color painted behind the page before content loads. Use
Color::TRANSPARENT for a transparent browser from the first frame.
Trait Implementations§
Source§impl Clone for ControllerOptions
impl Clone for ControllerOptions
Source§fn clone(&self) -> ControllerOptions
fn clone(&self) -> ControllerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerOptions
impl Debug for ControllerOptions
Source§impl Default for ControllerOptions
impl Default for ControllerOptions
Source§fn default() -> ControllerOptions
fn default() -> ControllerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControllerOptions
impl RefUnwindSafe for ControllerOptions
impl Send for ControllerOptions
impl Sync for ControllerOptions
impl Unpin for ControllerOptions
impl UnsafeUnpin for ControllerOptions
impl UnwindSafe for ControllerOptions
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