Error handling

This commit is contained in:
Ondrej Babec
2022-02-27 15:48:09 +01:00
parent 3cb9de0371
commit 4eaa83bf1c
14 changed files with 421 additions and 41 deletions

View File

@@ -8,6 +8,9 @@ use crate::packet::mqtt_packet::Packet;
pub enum NetworkError {
Connection,
Unknown,
QoSAck,
IDNotMatchedOnAck,
NoMatchingSubs,
}
pub trait Network {