pub trait ComposeOptData: OptData {
// Required methods
fn compose_len(&self) -> u16;
fn compose_option<Target: OctetsBuilder + ?Sized>(
&self,
target: &mut Target,
) -> Result<(), Target::AppendError>;
}
Expand description
An OPT option that can be written to wire format.
Required Methods§
fn compose_len(&self) -> u16
fn compose_option<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Object Safety§
This trait is not object safe.