Struct tauri_runtime::webview::CustomProtocol [−][src]
pub struct CustomProtocol { pub protocol: Box<dyn Fn(&str) -> Result<Vec<u8>, Box<dyn Error>> + Send + Sync>, }
Expand description
Uses a custom URI scheme handler to resolve file requests
Fields
protocol: Box<dyn Fn(&str) -> Result<Vec<u8>, Box<dyn Error>> + Send + Sync>
Handler for protocol
Auto Trait Implementations
impl !RefUnwindSafe for CustomProtocol
impl Send for CustomProtocol
impl Sync for CustomProtocol
impl Unpin for CustomProtocol
impl !UnwindSafe for CustomProtocol