ArrayVecMessage

Type Alias ArrayVecMessage 

Source
pub type ArrayVecMessage<const PAYLOAD_CAP: usize, const N_OPTS: usize, const OPT_CAP: usize> = Message<ArrayVec<[u8; PAYLOAD_CAP]>, ArrayVec<[u8; OPT_CAP]>, ArrayVec<[Opt<ArrayVec<[u8; OPT_CAP]>>; N_OPTS]>>;
Expand description

Message that uses static fixed-capacity stack-allocating byte buffers

Aliased Type§

pub struct ArrayVecMessage<const PAYLOAD_CAP: usize, const N_OPTS: usize, const OPT_CAP: usize> {
    pub id: Id,
    pub ty: Type,
    pub ver: Version,
    pub token: Token,
    pub code: Code,
    pub opts: ArrayVec<[Opt<ArrayVec<[u8; OPT_CAP]>>; N_OPTS]>,
    pub payload: Payload<ArrayVec<[u8; PAYLOAD_CAP]>>,
}

Fields§

§id: Id

see Id for details

§ty: Type

see Type for details

§ver: Version

see Version for details

§token: Token

see Token for details

§code: Code

see Code for details

§opts: ArrayVec<[Opt<ArrayVec<[u8; OPT_CAP]>>; N_OPTS]>

see opt::Opt for details

§payload: Payload<ArrayVec<[u8; PAYLOAD_CAP]>>

see Payload