pub trait Write<Err: Into<Error>> {
// Required methods
fn write_all(&mut self, buf: &[u8]) -> Result<(), Err>;
fn flush(&mut self) -> Result<(), Err>;
}Expand description
Generic write trait similar to std::io::Write.
The instances of Write are required to construct Sender that can write
MavLink frames.
Instead of relying on a particular definition of write trait, we allow users to use any library with I/O capabilities.
Wrappers are available for specific I/O implementations: