Skip to main content

TransportInstaller

Trait TransportInstaller 

Source
pub trait TransportInstaller: Send + Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn is_requested(&self, config: &TransportConfig) -> bool;
    fn install(
        &self,
        client: Arc<Client>,
        config: TransportConfig,
        context: InstallContext,
    ) -> InstallFuture;
}
Expand description

Host-supplied implementation for a native transport that cannot be bundled in the publishable Tauri plugin. The OpenRTC constructor remains the sole activation switch; registering an installer only declares compiled support.

Required Methods§

Source

fn id(&self) -> &'static str

Source

fn is_requested(&self, config: &TransportConfig) -> bool

Source

fn install( &self, client: Arc<Client>, config: TransportConfig, context: InstallContext, ) -> InstallFuture

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§