pub struct HostnameEntry { /* private fields */ }
Expand description
An /etc/hosts file parser
Implementations§
Source§impl HostnameEntry
impl HostnameEntry
Sourcepub fn get_hostnames(&self) -> &[String]
pub fn get_hostnames(&self) -> &[String]
Returns the slice with the hostnames
Sourcepub fn get_hostnames_iter(&self) -> Iter<'_, String>
pub fn get_hostnames_iter(&self) -> Iter<'_, String>
Returns the iterator of the hostnames
Trait Implementations§
Source§impl Borrow<IpAddr> for HostnameEntry
impl Borrow<IpAddr> for HostnameEntry
Source§impl Clone for HostnameEntry
impl Clone for HostnameEntry
Source§fn clone(&self) -> HostnameEntry
fn clone(&self) -> HostnameEntry
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HostnameEntry
impl Debug for HostnameEntry
Source§impl Hash for HostnameEntry
impl Hash for HostnameEntry
Source§impl PartialEq for HostnameEntry
impl PartialEq for HostnameEntry
impl Eq for HostnameEntry
Auto Trait Implementations§
impl Freeze for HostnameEntry
impl RefUnwindSafe for HostnameEntry
impl Send for HostnameEntry
impl Sync for HostnameEntry
impl Unpin for HostnameEntry
impl UnwindSafe for HostnameEntry
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