async_coap/message/
mod.rs1use super::*;
19
20pub type MsgId = u16;
22
23mod read;
24pub use read::AckMessage;
25pub use read::MessageRead;
26pub use read::ResetMessage;
27
28mod write;
29pub use write::MessageWrite;
30
31mod msg_code;
32pub use msg_code::MsgCode;
33pub use msg_code::MsgCodeClass;
34
35mod msg_type;
36pub use msg_type::MsgType;
37
38mod display;
39pub use display::CoapByteDisplayFormatter;
40pub use display::MessageDisplay;
41
42mod null;
43pub use null::NullMessageRead;
44pub use null::NullMessageWrite;
45
46mod std_encoder;
47pub use std_encoder::BufferMessageEncoder;
48pub use std_encoder::VecMessageEncoder;
49
50mod std_parser;
51pub use std_parser::OwnedImmutableMessage;
52pub use std_parser::StandardMessageParser;
53
54mod token;
55pub use token::*;
56
57pub mod codec;
58
59#[allow(dead_code)]
60const COAP_MSG_VER_MASK: u8 = 0b11000000;
61
62#[allow(dead_code)]
63const COAP_MSG_VER_OFFS: u8 = 6;
64
65#[allow(dead_code)]
66const COAP_MSG_T_MASK: u8 = 0b00110000;
67
68#[allow(dead_code)]
69const COAP_MSG_T_OFFS: u8 = 4;
70
71#[allow(dead_code)]
72const COAP_MSG_TKL_MASK: u8 = 0b00001111;
73
74#[allow(dead_code)]
75const COAP_MSG_TKL_OFFS: u8 = 0;