pub struct Options<'a>(/* private fields */);
Implementations§
source§impl<'a> Options<'a>
impl<'a> Options<'a>
pub const fn new(options: &'a [DhcpOption<'a>]) -> Self
pub const fn buf() -> [DhcpOption<'a>; 8]
pub fn discover( requested_ip: Option<Ipv4Addr>, buf: &'a mut [DhcpOption<'a>], ) -> Self
pub fn request(ip: Ipv4Addr, buf: &'a mut [DhcpOption<'a>]) -> Self
pub fn release(buf: &'a mut [DhcpOption<'a>]) -> Self
pub fn decline(buf: &'a mut [DhcpOption<'a>]) -> Self
pub fn reply<'b>( &self, mt: MessageType, server_ip: Ipv4Addr, lease_duration_secs: u32, gateways: &'b [Ipv4Addr], subnet: Option<Ipv4Addr>, dns: &'b [Ipv4Addr], buf: &'b mut [DhcpOption<'b>], ) -> Options<'b>
pub fn iter(&self) -> impl Iterator<Item = DhcpOption<'a>> + 'a
Trait Implementations§
impl<'a> Eq for Options<'a>
impl<'a> StructuralPartialEq for Options<'a>
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)