pub struct CachesController<MC: MutexedCaches = IoInterf> { /* private fields */ }
Implementations§
Source§impl CachesController<IoInterf>
impl CachesController<IoInterf>
pub async fn new() -> CDnsResult<Self>
Source§impl<MC: MutexedCaches> CachesController<MC>
impl<MC: MutexedCaches> CachesController<MC>
Sourcepub async fn new_custom() -> CDnsResult<Self>
pub async fn new_custom() -> CDnsResult<Self>
Just creates insrance, but does not read anything from disk.
pub async fn is_resolve_cached(&self) -> bool
pub async fn is_host_cached(&self) -> bool
pub async fn clone_resolve_list(&self) -> CDnsResult<Arc<ResolveConfig>>
pub async fn clone_host_list(&self) -> CDnsResult<Arc<HostConfig>>
Trait Implementations§
Source§impl<MC: Debug + MutexedCaches> Debug for CachesController<MC>
impl<MC: Debug + MutexedCaches> Debug for CachesController<MC>
impl<MC: MutexedCaches> Send for CachesController<MC>
impl<MC: MutexedCaches> Sync for CachesController<MC>
Auto Trait Implementations§
impl<MC> Freeze for CachesController<MC>
impl<MC> RefUnwindSafe for CachesController<MC>where
<MC as MutexedCaches>::ResolveCache: RefUnwindSafe,
<MC as MutexedCaches>::HostCahae: RefUnwindSafe,
MC: RefUnwindSafe,
impl<MC> Unpin for CachesController<MC>where
<MC as MutexedCaches>::ResolveCache: Unpin,
<MC as MutexedCaches>::HostCahae: Unpin,
MC: Unpin,
impl<MC> UnwindSafe for CachesController<MC>where
<MC as MutexedCaches>::ResolveCache: UnwindSafe,
<MC as MutexedCaches>::HostCahae: UnwindSafe,
MC: UnwindSafe,
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