pub trait ComposeSvcParamValue: SvcParamValue {
    // Required methods
    fn compose_len(&self) -> u16;
    fn compose_value<Target: OctetsBuilder + ?Sized>(
        &self,
        target: &mut Target
    ) -> Result<(), Target::AppendError>;
}
Expand description

A service binding parameter value that can be composed into wire format.

All value types need to be able to calculate the length of their wire format. This length needs to fit into a u16. It is the responsibility of the value type to ensure that it will not grow too large.

Required Methods§

source

fn compose_len(&self) -> u16

Returns the length of the composed value.

source

fn compose_value<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target ) -> Result<(), Target::AppendError>

Appends the wire format of the value to the end of target.

Implementors§