Trait SimpSender

Source
pub trait SimpSender
where Self: Sized,
{ type Error; // Required method fn write(&mut self, message: SimpMessage) -> Result<(), Self::Error>; // Provided method fn write_iter<I>(&mut self, iter: I) -> Result<(), Self::Error> where I: Iterator<Item = SimpMessage> { ... } }

Required Associated Types§

Required Methods§

Source

fn write(&mut self, message: SimpMessage) -> Result<(), Self::Error>

Provided Methods§

Source

fn write_iter<I>(&mut self, iter: I) -> Result<(), Self::Error>
where I: Iterator<Item = SimpMessage>,

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 SimpSender for ()

Source§

type Error = ()

Source§

fn write(&mut self, _: SimpMessage) -> Result<(), Self::Error>

Implementors§