Trait sonic_channel::SonicChannel
source · [−]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
Required Methods
sourcefn stream(&self) -> &SonicStream
fn stream(&self) -> &SonicStream
Returns reference for sonic stream of connection