[][src]Trait msgbus::transport::Transport

pub trait Transport {
    fn name(&self) -> &'static str;
fn bandwidth(&self) -> &Bandwidth;
fn register(
        &self,
        channels: &Range<Channel>,
        handler: fn(_: Channel, _: &dyn Msg) -> Result<String, String>
    ) -> Result<String, String>;
fn publish(&self, ch: Channel, msg: &dyn Msg) -> Result<String, String>; }

Required methods

fn name(&self) -> &'static str

fn bandwidth(&self) -> &Bandwidth

fn register(
    &self,
    channels: &Range<Channel>,
    handler: fn(_: Channel, _: &dyn Msg) -> Result<String, String>
) -> Result<String, String>

fn publish(&self, ch: Channel, msg: &dyn Msg) -> Result<String, String>

Loading content...

Implementors

impl<'a> Transport for TransportInternal[src]

impl<'a> Transport for TransportLocal[src]

impl<'a> Transport for TransportNetwork[src]

Loading content...