Struct packet_formats_dhcp::v6::IaPrefixSerializer
source · pub struct IaPrefixSerializer<'a> { /* private fields */ }
Expand description
A serializer for the IA Prefix DHCPv6 option.
Implementations§
source§impl<'a> IaPrefixSerializer<'a>
impl<'a> IaPrefixSerializer<'a>
sourcepub fn new(
preferred_lifetime_secs: u32,
valid_lifetime_secs: u32,
prefix: Subnet<Ipv6Addr>,
options: &'a [DhcpOption<'a>],
) -> IaPrefixSerializer<'a>
pub fn new( preferred_lifetime_secs: u32, valid_lifetime_secs: u32, prefix: Subnet<Ipv6Addr>, options: &'a [DhcpOption<'a>], ) -> IaPrefixSerializer<'a>
Constructs a new IaPrefixSerializer
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IaPrefixSerializer<'a>
impl<'a> RefUnwindSafe for IaPrefixSerializer<'a>
impl<'a> Send for IaPrefixSerializer<'a>
impl<'a> Sync for IaPrefixSerializer<'a>
impl<'a> Unpin for IaPrefixSerializer<'a>
impl<'a> UnwindSafe for IaPrefixSerializer<'a>
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