[−][src]Struct dhcpd_parser::leases::Leases
Trait Implementations
impl LeasesMethods for Leases
[src]
fn all(&self) -> Vec<Lease>
[src]
fn active_by<S: AsRef<str>>(
&self,
field: LeasesField,
value: S,
active_at: Date
) -> Option<Lease>
[src]
&self,
field: LeasesField,
value: S,
active_at: Date
) -> Option<Lease>
Deprecated since 0.4.3:
any filtering logic should be done by user
Returns a lease by some field and it's value if it exists.
The lease has to be active:
active_at
is between it'sstarts
andends
datetime- is not
abandoned
- no active leases that match the field value exist after it
fn by_leased<S: AsRef<str>>(&self, ip: S) -> Option<Lease>
[src]
fn by_leased_all<S: AsRef<str>>(&self, ip: S) -> Vec<Lease>
[src]
fn by_mac<S: AsRef<str>>(&self, mac: S) -> Option<Lease>
[src]
fn by_mac_all<S: AsRef<str>>(&self, mac: S) -> Vec<Lease>
[src]
fn active_by_hostname<S: AsRef<str>>(
&self,
hostname: S,
active_at: Date
) -> Option<Lease>
[src]
&self,
hostname: S,
active_at: Date
) -> Option<Lease>
fn by_hostname_all<S: AsRef<str>>(&self, hostname: S) -> Vec<Lease>
[src]
fn active_by_client_hostname<S: AsRef<str>>(
&self,
hostname: S,
active_at: Date
) -> Option<Lease>
[src]
&self,
hostname: S,
active_at: Date
) -> Option<Lease>
fn by_client_hostname_all<S: AsRef<str>>(&self, hostname: S) -> Vec<Lease>
[src]
fn new() -> Leases
[src]
fn push(&mut self, l: Lease)
[src]
fn hostnames(&self) -> HashSet<String>
[src]
fn client_hostnames(&self) -> HashSet<String>
[src]
impl Clone for Leases
[src]
impl Eq for Leases
[src]
impl PartialEq<Leases> for Leases
[src]
impl Debug for Leases
[src]
impl Index<usize> for Leases
[src]
Auto Trait Implementations
impl Send for Leases
impl Sync for Leases
impl Unpin for Leases
impl UnwindSafe for Leases
impl RefUnwindSafe for Leases
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,