pub struct DhcpOptionWriter<'a> { /* private fields */ }
Expand description
A buffer for DHCP options.
Implementations§
Source§impl<'a> DhcpOptionWriter<'a>
impl<'a> DhcpOptionWriter<'a>
pub fn new(buffer: &'a mut [u8]) -> Self
Sourcepub fn emit(&mut self, option: DhcpOption<'_>) -> Result<()>
pub fn emit(&mut self, option: DhcpOption<'_>) -> Result<()>
Emit a DhcpOption
into a DhcpOptionWriter
.
pub fn end(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DhcpOptionWriter<'a>
impl<'a> RefUnwindSafe for DhcpOptionWriter<'a>
impl<'a> Send for DhcpOptionWriter<'a>
impl<'a> Sync for DhcpOptionWriter<'a>
impl<'a> Unpin for DhcpOptionWriter<'a>
impl<'a> !UnwindSafe for DhcpOptionWriter<'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