[][src]Struct dhcpd_parser::leases::Lease

pub struct Lease {
    pub ip: String,
    pub dates: LeaseDates,
    pub hardware: Option<Hardware>,
    pub uid: Option<String>,
    pub client_hostname: Option<String>,
    pub hostname: Option<String>,
    pub abandoned: bool,
}

Fields

ip: Stringdates: LeaseDateshardware: Option<Hardware>uid: Option<String>client_hostname: Option<String>hostname: Option<String>abandoned: bool

Methods

impl Lease[src]

pub fn new() -> Lease[src]

pub fn is_active_at(&self, when: Date) -> bool[src]

Trait Implementations

impl Clone for Lease[src]

impl Eq for Lease[src]

impl PartialEq<Lease> for Lease[src]

impl Debug for Lease[src]

Auto Trait Implementations

impl Send for Lease

impl Sync for Lease

impl Unpin for Lease

impl UnwindSafe for Lease

impl RefUnwindSafe for Lease

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]