Struct VersoviewSettings
pub struct VersoviewSettings {Show 15 fields
pub url: Option<Url>,
pub with_panel: bool,
pub inner_size: Option<Size>,
pub position: Option<Position>,
pub maximized: bool,
pub visible: bool,
pub fullscreen: bool,
pub focused: bool,
pub devtools_port: Option<u16>,
pub profiler_settings: Option<ProfilerSettings>,
pub user_agent: Option<String>,
pub init_script: Option<String>,
pub userscripts_directory: Option<String>,
pub zoom_level: Option<f32>,
pub resources_directory: Option<PathBuf>,
}
Expand description
Configuration of Verso instance.
Fields§
§url: Option<Url>
URL to load initially.
with_panel: bool
Should launch without or without control panel
inner_size: Option<Size>
Window size for the initial winit window
position: Option<Position>
Window position for the initial winit window
maximized: bool
Launch maximized or not for the initial winit window
visible: bool
Launch visible or not for the initial winit window
fullscreen: bool
Launch fullscreen or not for the initial winit window
focused: bool
Launch focused or not for the initial winit window
devtools_port: Option<u16>
Port number to start a server to listen to remote Firefox devtools connections. 0 for random port.
profiler_settings: Option<ProfilerSettings>
Servo time profile settings
user_agent: Option<String>
Override the user agent
init_script: Option<String>
Script to run on document started to load
userscripts_directory: Option<String>
The directory to load userscripts from
zoom_level: Option<f32>
Initial window’s zoom level
resources_directory: Option<PathBuf>
Path to resource directory. If None, Verso will try to get default directory. And if that still doesn’t exist, all resource configuration will set to default values.
Trait Implementations§
§impl Clone for ConfigFromController
impl Clone for ConfigFromController
§fn clone(&self) -> ConfigFromController
fn clone(&self) -> ConfigFromController
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more