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§
fn glue_new_pub(send_address: String) -> Result<impl GluePublisher>
fn glue_send<T>(&self, msg: T) -> Result<()>
fn glue_gen_send<T>(self) -> impl Send + FnMut(T) -> Result<(), Box<dyn Error>>
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.