Struct dhcproto::v6::RelayMessage
source · pub struct RelayMessage { /* private fields */ }
Implementations§
source§impl RelayMessage
impl RelayMessage
pub fn msg_type(&self) -> MessageType
pub fn hop_count(&self) -> u8
pub fn link_addr(&self) -> Ipv6Addr
pub fn peer_addr(&self) -> Ipv6Addr
sourcepub fn opts(&self) -> &DhcpOptions
pub fn opts(&self) -> &DhcpOptions
Get a reference to the message’s options.
sourcepub fn set_opts(&mut self, opts: DhcpOptions) -> &mut Self
pub fn set_opts(&mut self, opts: DhcpOptions) -> &mut Self
Set DHCP opts
sourcepub fn opts_mut(&mut self) -> &mut DhcpOptions
pub fn opts_mut(&mut self) -> &mut DhcpOptions
Get a mutable reference to the message’s options.
Trait Implementations§
source§impl Clone for RelayMessage
impl Clone for RelayMessage
source§fn clone(&self) -> RelayMessage
fn clone(&self) -> RelayMessage
Returns a copy 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 RelayMessage
impl Debug for RelayMessage
source§impl Decodable for RelayMessage
impl Decodable for RelayMessage
source§fn decode(decoder: &mut Decoder<'_>) -> DecodeResult<Self>
fn decode(decoder: &mut Decoder<'_>) -> DecodeResult<Self>
Read the type from the stream
source§fn from_bytes(bytes: &[u8]) -> DecodeResult<Self>
fn from_bytes(bytes: &[u8]) -> DecodeResult<Self>
Returns the object in binary form
source§impl Display for RelayMessage
impl Display for RelayMessage
source§impl Encodable for RelayMessage
impl Encodable for RelayMessage
source§impl PartialEq for RelayMessage
impl PartialEq for RelayMessage
source§fn eq(&self, other: &RelayMessage) -> bool
fn eq(&self, other: &RelayMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RelayMessage
impl StructuralEq for RelayMessage
impl StructuralPartialEq for RelayMessage
Auto Trait Implementations§
impl RefUnwindSafe for RelayMessage
impl Send for RelayMessage
impl Sync for RelayMessage
impl Unpin for RelayMessage
impl UnwindSafe for RelayMessage
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