Struct dhcpv4::server::OfferOptions
source · pub struct OfferOptions {
pub offered_ip: Ipv4Addr,
pub server_ip: Ipv4Addr,
pub lease_length_config: LeaseLength,
pub renewal_time_value: Option<u32>,
pub rebinding_time_value: Option<u32>,
pub subnet_mask: PrefixLength<Ipv4>,
}
Expand description
Parameters needed in order to build a DHCPOFFER.
Fields§
§offered_ip: Ipv4Addr
§server_ip: Ipv4Addr
§lease_length_config: LeaseLength
§renewal_time_value: Option<u32>
§rebinding_time_value: Option<u32>
§subnet_mask: PrefixLength<Ipv4>
Auto Trait Implementations§
impl RefUnwindSafe for OfferOptions
impl Send for OfferOptions
impl Sync for OfferOptions
impl Unpin for OfferOptions
impl UnwindSafe for OfferOptions
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.