[−][src]Trait cntrlr::io::WriteExt
Extended functions for writing bytes
Associated Types
type AllFuture: Future<Output = Result<(), Self::Error>> + 'a
[src]
The future for Self::write_all()
type FmtFuture: Future<Output = Result<(), Self::Error>> + 'a
[src]
The future for Self::write_fmt()
Required methods
pub fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> Self::AllFuture
[src]
Write bytes to the device
This writes exactly buf.len()
bytes to the device.
pub fn write_fmt<'a>(&'a mut self, fmt: Arguments<'a>) -> Self::FmtFuture
[src]
Write a formatted message to the device
Internally, this will allocate a String
to hold the
formatted output.