pub trait TcatSectionSerdes<T> {
    const MIN_SIZE: usize;
    const ERROR_TYPE: GeneralProtocolError;

    // Required methods
    fn serialize(params: &T, raw: &mut [u8]) -> Result<(), String>;
    fn deserialize(params: &mut T, raw: &[u8]) -> Result<(), String>;
}
Expand description

Serializer and deserializer for parameters in TCAT section.

Required Associated Constants§

source

const MIN_SIZE: usize

Minimum size of section for parameters.

source

const ERROR_TYPE: GeneralProtocolError

The type of error.

Required Methods§

source

fn serialize(params: &T, raw: &mut [u8]) -> Result<(), String>

Serialize parameters for section.

source

fn deserialize(params: &mut T, raw: &[u8]) -> Result<(), String>

Deserialize section for parameters.

Object Safety§

This trait is not object safe.

Implementors§