pub trait OptData {
// Required method
fn code(&self) -> OptionCode;
}
Expand description
A type representing an OPT option.
The type needs to be able to report the option code to use for the
encoding via the code
method.
Required Methods§
sourcefn code(&self) -> OptionCode
fn code(&self) -> OptionCode
Returns the option code associated with this option.