Struct smoltcp::wire::DhcpOptionWriter
source · 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
.