Trait WriteIter

Source
pub trait WriteIter {
    type Error;

    // Required methods
    fn bwrite_iter<WI>(&mut self, bytes: WI) -> Result<(), Self::Error>
       where WI: Iterator<Item = u8>;
    fn bflush(&mut self) -> Result<(), Self::Error>;
}
Expand description

Write iterator

Required Associated Types§

Source

type Error

Error type

Required Methods§

Source

fn bwrite_iter<WI>(&mut self, bytes: WI) -> Result<(), Self::Error>
where WI: Iterator<Item = u8>,

Blocking write of iterator

Source

fn bflush(&mut self) -> Result<(), Self::Error>

Blocking flush

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.

Implementors§

Source§

impl<Tx> WriteIter for Tx
where Tx: Write<u8>,

Source§

type Error = <Tx as Write<u8>>::Error