[][src]Trait sonic_channel::StreamCommand

pub trait StreamCommand {
    type Response;

    const READ_LINES_COUNT: usize;

    fn message(&self) -> String;
fn receive(&self, message: String) -> Result<Self::Response, SonicError>; }

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn message(&self) -> String

fn receive(&self, message: String) -> Result<Self::Response, SonicError>

Loading content...

Implementors

impl StreamCommand for PingCommand[src]

type Response = bool

impl StreamCommand for QuitCommand[src]

type Response = bool

impl StreamCommand for StartCommand[src]

type Response = StartCommandResponse

impl<'_> StreamCommand for PushCommand<'_>[src]

type Response = bool

impl<'_> StreamCommand for QueryCommand<'_>[src]

Loading content...