pub trait SonicChannel {
    type Channel;

    fn stream(&self) -> &SonicStream;
    fn start<A, S>(addr: A, password: S) -> Result<Self::Channel>
    where
        A: ToSocketAddrs,
        S: ToString
; }
Expand description

This trait should be implemented for all supported sonic channels

Required Associated Types

Sonic channel struct

Required Methods

Returns reference for sonic stream of connection

Connects to sonic backend and run start command.

let search_channel = SearchChannel::start(
    "localhost:1491",
    "SecretPassword",
)?;

Implementors