Struct mhost::nameserver::NameServerConfigGroup
source · pub struct NameServerConfigGroup { /* private fields */ }
Implementations§
source§impl NameServerConfigGroup
impl NameServerConfigGroup
pub async fn from_file<P: AsRef<Path>>( resolvers: &ResolverGroup, path: P ) -> Result<NameServerConfigGroup>
pub async fn from_file_abort_on_error<P: AsRef<Path>>( resolvers: &ResolverGroup, path: P, abort_on_error: bool ) -> Result<NameServerConfigGroup>
source§impl NameServerConfigGroup
impl NameServerConfigGroup
pub fn new(configs: Vec<NameServerConfig>) -> NameServerConfigGroup
pub fn from_system_config() -> Result<Self>
pub fn from_system_config_path<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Debug for NameServerConfigGroup
impl Debug for NameServerConfigGroup
source§impl From<NameServerConfigGroup> for ResolverConfigGroup
impl From<NameServerConfigGroup> for ResolverConfigGroup
source§fn from(configs: NameServerConfigGroup) -> Self
fn from(configs: NameServerConfigGroup) -> Self
Converts to this type from the input type.
source§impl IntoIterator for NameServerConfigGroup
impl IntoIterator for NameServerConfigGroup
§type Item = NameServerConfig
type Item = NameServerConfig
The type of the elements being iterated over.
§type IntoIter = IntoIter<<NameServerConfigGroup as IntoIterator>::Item>
type IntoIter = IntoIter<<NameServerConfigGroup as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl RefUnwindSafe for NameServerConfigGroup
impl Send for NameServerConfigGroup
impl Sync for NameServerConfigGroup
impl Unpin for NameServerConfigGroup
impl UnwindSafe for NameServerConfigGroup
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