Skip to main content

IpcHandler

Trait IpcHandler 

Source
pub trait IpcHandler: Send + Sync {
    // Required method
    fn handle(&self, message: IpcMessage) -> IpcResponse;
}
Expand description

Handler for IPC messages from the frontend.

Required Methods§

Source

fn handle(&self, message: IpcMessage) -> IpcResponse

Handle an IPC message and return a response.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§