Skip to main content

SocketIoExt

Trait SocketIoExt 

Source
pub trait SocketIoExt<R: Runtime> {
    // Required method
    fn socketio(&self) -> &SocketIo;
}
Expand description

app.socketio() on anything that is a Manager (App, AppHandle, Window, Webview, …). Panics when the plugin is not registered (init).

Required Methods§

Source

fn socketio(&self) -> &SocketIo

The client registry.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<R: Runtime, T: Manager<R>> SocketIoExt<R> for T