pub struct Ipv4Option { /* private fields */ }Available on crate feature
alloc only.Implementations§
Source§impl Ipv4Option
impl Ipv4Option
pub fn to_bytes_extended<T: PacketWritable>( &self, writer: &mut PacketWriter<'_, T>, ) -> Result<(), SerializationError>
pub fn to_bytes(&self) -> Result<Vec<u8>, SerializationError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ValidationError>
pub fn from_bytes_unchecked(bytes: &[u8]) -> Self
pub fn validate(bytes: &[u8]) -> Result<(), ValidationError>
pub fn byte_len(&self) -> usize
pub fn option_type(&self) -> u8
pub fn copied(&self) -> bool
pub fn option_class(&self) -> u8
pub fn option_length(&self) -> usize
pub fn option_data(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for Ipv4Option
impl Clone for Ipv4Option
Source§fn clone(&self) -> Ipv4Option
fn clone(&self) -> Ipv4Option
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ipv4Option
impl Debug for Ipv4Option
Source§impl From<&Ipv4OptionRef<'_>> for Ipv4Option
impl From<&Ipv4OptionRef<'_>> for Ipv4Option
Source§fn from(ipv4_option: &Ipv4OptionRef<'_>) -> Self
fn from(ipv4_option: &Ipv4OptionRef<'_>) -> Self
Converts to this type from the input type.
Source§impl From<Ipv4OptionRef<'_>> for Ipv4Option
impl From<Ipv4OptionRef<'_>> for Ipv4Option
Source§fn from(ipv4_option: Ipv4OptionRef<'_>) -> Self
fn from(ipv4_option: Ipv4OptionRef<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Ipv4Option
impl RefUnwindSafe for Ipv4Option
impl Send for Ipv4Option
impl Sync for Ipv4Option
impl Unpin for Ipv4Option
impl UnwindSafe for Ipv4Option
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more