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>
Expand description
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
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T