#[repr(C)]pub struct ResourceOptions {Show 13 fields
pub allow_remote_resources: bool,
pub resource_timeout_ms: u32,
pub max_concurrent_requests: u32,
pub blocked_domains: Vec<String>,
pub allowed_domains: Vec<String>,
pub block_images: bool,
pub block_stylesheets: bool,
pub block_scripts: bool,
pub block_fonts: bool,
pub user_agent: String,
pub extra_headers: Vec<HttpHeader>,
pub enable_cache: bool,
pub cache_path: String,
}Expand description
Resource loading options
Fields§
§allow_remote_resources: boolAllow loading remote resources (images, CSS, etc.)
resource_timeout_ms: u32Timeout for resource loading in milliseconds
max_concurrent_requests: u32Maximum concurrent resource requests
blocked_domains: Vec<String>Block resources from these domains
allowed_domains: Vec<String>Only allow resources from these domains (empty = all allowed)
block_images: boolBlock specific resource types
block_stylesheets: boolBlock external stylesheets
block_scripts: boolBlock external scripts
block_fonts: boolBlock web fonts
user_agent: StringCustom User-Agent header
extra_headers: Vec<HttpHeader>Additional HTTP headers for resource requests
enable_cache: boolEnable resource caching
cache_path: StringCache directory path (empty = memory cache only)
Trait Implementations§
Source§impl Clone for ResourceOptions
impl Clone for ResourceOptions
Source§impl Debug for ResourceOptions
impl Debug for ResourceOptions
Source§impl Default for ResourceOptions
impl Default for ResourceOptions
Source§impl ExternType for ResourceOptions
impl ExternType for ResourceOptions
Auto Trait Implementations§
impl Freeze for ResourceOptions
impl RefUnwindSafe for ResourceOptions
impl Send for ResourceOptions
impl Sync for ResourceOptions
impl Unpin for ResourceOptions
impl UnwindSafe for ResourceOptions
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