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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.