[−][src]Trait sonic_channel::SonicChannel
This trait should be implemented for all supported sonic channels
Associated Types
Loading content...Required methods
pub fn stream(&self) -> &SonicStream
[src]
Returns reference for sonic stream of connection
pub fn start<A, S>(addr: A, password: S) -> Result<Self::Channel> where
A: ToSocketAddrs,
S: ToString,
[src]
A: ToSocketAddrs,
S: ToString,
Connects to sonic backend and run start command.
let search_channel = SearchChannel::start( "localhost:1491", "SecretPassword", )?;
Implementors
impl SonicChannel for ControlChannel
[src]
type Channel = ControlChannel
pub fn stream(&self) -> &SonicStream
[src]
pub fn start<A, S>(addr: A, password: S) -> Result<Self::Channel> where
A: ToSocketAddrs,
S: ToString,
[src]
A: ToSocketAddrs,
S: ToString,
impl SonicChannel for IngestChannel
[src]
type Channel = IngestChannel
pub fn stream(&self) -> &SonicStream
[src]
pub fn start<A, S>(addr: A, password: S) -> Result<Self::Channel> where
A: ToSocketAddrs,
S: ToString,
[src]
A: ToSocketAddrs,
S: ToString,
impl SonicChannel for SearchChannel
[src]
type Channel = SearchChannel
pub fn stream(&self) -> &SonicStream
[src]
pub fn start<A, S>(addr: A, password: S) -> Result<Self::Channel> where
A: ToSocketAddrs,
S: ToString,
[src]
A: ToSocketAddrs,
S: ToString,