Trait ServiceInstance

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

    // Required method
    fn connect_to(
        &self,
        member: &str,
        server_end: Self::Transport,
    ) -> Result<(), 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_to( &self, member: &str, server_end: Self::Transport, ) -> Result<(), Self::Error>

Attempts to connect the given member.

Implementors§