#[non_exhaustive]pub struct HostsEntry {
pub ip: String,
pub host_names: Vec<String>,
/* private fields */
}Expand description
Single /etc/hosts entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ip: StringIP (raw, IPv4/6 agnostic).
host_names: Vec<String>List of host names / aliases.
Implementations§
Trait Implementations§
Source§impl Clone for HostsEntry
impl Clone for HostsEntry
Source§fn clone(&self) -> HostsEntry
fn clone(&self) -> HostsEntry
Returns a duplicate 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 HostsEntry
impl Debug for HostsEntry
Source§impl Default for HostsEntry
impl Default for HostsEntry
Source§fn default() -> HostsEntry
fn default() -> HostsEntry
Returns the “default value” for a type. Read more
Source§impl PartialEq for HostsEntry
impl PartialEq for HostsEntry
impl StructuralPartialEq for HostsEntry
Auto Trait Implementations§
impl Freeze for HostsEntry
impl RefUnwindSafe for HostsEntry
impl Send for HostsEntry
impl Sync for HostsEntry
impl Unpin for HostsEntry
impl UnsafeUnpin for HostsEntry
impl UnwindSafe for HostsEntry
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