TcatSectionSerdes

Trait TcatSectionSerdes 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§