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
.