1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//! `sage_mqtt` is a an encoding/decoding library for MQTT 5.0 protocol. //! The library consists in pivot types, such as `UTF8String` that can be //! written to and read from a stream as well as converted to standard Rust //! types. #[allow(unused_macros)] macro_rules! assert_matches { ($expression:expr, $( $pattern:pat )|+ $( if $guard: expr )?) => { assert!(matches!($expression, $( $pattern )|+ $( if $guard )?)) } } mod decode; mod encode; mod error; mod types; pub use decode::Decode; pub use encode::Encode; pub use error::{Error, Result}; pub use types::{ BinaryData, Bits, FourByteInteger, TwoByteInteger, UTF8String, VariableByteInteger, };