GluePublisher

Trait GluePublisher 

Source
pub trait GluePublisher: Send {
    // Required methods
    fn glue_new_pub(send_address: String) -> Result<impl GluePublisher>;
    fn glue_send<T>(&self, msg: T) -> Result<()>
       where T: Into<Message> + Send + Sync + 'static;
    fn glue_gen_send<T>(
        self,
    ) -> impl Send + FnMut(T) -> Result<(), Box<dyn Error>>
       where T: Into<Message> + Send + Sync + 'static;
}

Required Methods§

Source

fn glue_new_pub(send_address: String) -> Result<impl GluePublisher>

Source

fn glue_send<T>(&self, msg: T) -> Result<()>
where T: Into<Message> + Send + Sync + 'static,

Source

fn glue_gen_send<T>(self) -> impl Send + FnMut(T) -> Result<(), Box<dyn Error>>
where T: Into<Message> + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GluePublisher for Socket

Source§

fn glue_new_pub(send_address: String) -> Result<impl GluePublisher>

Source§

fn glue_send<T>(&self, msg: T) -> Result<()>
where T: Into<Message> + Send + Sync + 'static,

Source§

fn glue_gen_send<T>(self) -> impl Send + FnMut(T) -> Result<(), Box<dyn Error>>
where T: Into<Message> + Send + Sync + 'static,

Implementors§