Trait ServiceInstance

Source
pub trait ServiceInstance {
    type Error: Error + Send + Sync + 'static;
    type Transport: Transport;

    // Required method
    fn connect(&mut self, member: &str) -> Result<Self::Transport, Self::Error>;
}
Expand description

An instance of a FIDL service.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

The error type for the instance.

Source

type Transport: Transport

The transport type created by connecting to a member.

Required Methods§

Source

fn connect(&mut self, member: &str) -> Result<Self::Transport, Self::Error>

Attempts to connect the given member.

Implementors§