pub fn send(&mut self, record: T) -> Result<()> {
        let bytes = T::to_bytes(record)?;
        crate::io::sync::try_write_record(&mut self.writer, bytes)?;
        Ok(())
    }
/// Write a record.
///
/// The method is enabled if the underlying writer implements [Write].
Write a record.
The method is enabled if the underlying writer implements [Write].
Write a record . The method is enabled if the underlying writer implements [ Write ] .
pub fn send(&mut self, record: T) -> Result<()> {
        let bytes = T::to_bytes(record)?;
        crate::io::sync::try_write_record(&mut self.writer, bytes)?;
        Ok(())
    }
pub fn send ( & mut self , record : T ) -> Result < ( ) > { let bytes = T :: to_bytes ( record ) ? ; crate :: io :: sync :: try_write_record ( & mut self . writer , bytes ) ? ; Ok ( ( ) ) }
Write a record.
Write a record .
&mut self
record
T
&mut self
record
T