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 CustomProtocolimpl Send for CustomProtocolimpl Sync for CustomProtocolimpl Unpin for CustomProtocolimpl !UnwindSafe for CustomProtocol