1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//! Everything that deals with converting from/to raw bytes. You probably only need the various wrapper types.

pub mod errors;
pub mod marshal;
pub mod unmarshal;
pub mod util;
pub mod validate_raw;
pub mod variant_macros;

mod wrapper_types;
pub use wrapper_types::unixfd::UnixFd;
pub use wrapper_types::ObjectPath;
pub use wrapper_types::SignatureWrapper;

/// The different header fields a message may or maynot have
#[derive(Debug)]
pub enum HeaderField {
    Path(String),
    Interface(String),
    Member(String),
    ErrorName(String),
    ReplySerial(u32),
    Destination(String),
    Sender(String),
    Signature(String),
    UnixFds(u32),
}