add gz compression
This commit is contained in:
parent
0e393896d3
commit
5c61d02749
8 changed files with 243 additions and 108 deletions
|
@ -17,9 +17,9 @@ impl Connection {
|
|||
}
|
||||
|
||||
/// Send a command to the display
|
||||
pub fn send(&self, packet: impl Into<Packet> + Debug) -> std::io::Result<()> {
|
||||
pub fn send(&self, packet: impl Into<Packet> + Debug) -> Result<(), std::io::Error> {
|
||||
debug!("sending {packet:?}");
|
||||
let packet = packet.into();
|
||||
let packet: Packet = packet.into();
|
||||
let data: Vec<u8> = packet.into();
|
||||
self.socket.send(&*data)?;
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue