[][src]Function async_coap::message::codec::encode_option

pub fn encode_option(
    buffer: &mut [u8],
    prev_key: OptionNumber,
    key: OptionNumber,
    value: &[u8]
) -> Result<usize, Error>

Encodes an option into the given buffer, including the value.