[][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>; }

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn message(&self) -> String

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

Loading content...

Implementors

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

type Response = bool

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

type Response = Vec<String>

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

type Response = Vec<String>

Loading content...