pub struct OptionHeader { /* private fields */ }
Expand description
The header of an OPT option.
This header contains a 16 bit option code identifying the kind of option we are dealing with and a 16 bit length describing the lenngth in octets of the option data.
Implementations
Trait Implementations
sourceimpl Clone for OptionHeader
impl Clone for OptionHeader
sourcefn clone(&self) -> OptionHeader
fn clone(&self) -> OptionHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Compose for OptionHeader
impl Compose for OptionHeader
sourcefn compose<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
fn compose<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
Appends the concrete representation of the value to the target. Read more
sourcefn compose_canonical<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
fn compose_canonical<T: OctetsBuilder + AsMut<[u8]>>(
&self,
target: &mut T
) -> Result<(), ShortBuf>
Appends the canonical representation of the value to the target. Read more
sourceimpl Debug for OptionHeader
impl Debug for OptionHeader
sourceimpl<Octets: AsRef<[u8]>> Parse<Octets> for OptionHeader
impl<Octets: AsRef<[u8]>> Parse<Octets> for OptionHeader
impl Copy for OptionHeader
Auto Trait Implementations
impl RefUnwindSafe for OptionHeader
impl Send for OptionHeader
impl Sync for OptionHeader
impl Unpin for OptionHeader
impl UnwindSafe for OptionHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.