ServiceConnector

Trait ServiceConnector 

Source
pub trait ServiceConnector {
    // Required method
    fn connect(service_name: &str) -> Result<&'static Channel, Status>;
}
Expand description

A trait that provides functionality to connect a channel to a FIDL service.

Required Methods§

Source

fn connect(service_name: &str) -> Result<&'static Channel, Status>

Returns a channel to the service named by service_name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§