#[non_exhaustive]pub struct DfsCacheEntry {
pub path_prefix: String,
pub target_count: usize,
pub expires_in: Option<Duration>,
}Expand description
One entry in the DFS referral cache.
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.path_prefix: StringThe DFS path prefix this entry covers. Lowercased UNC form (the internal normalization used for case-insensitive matching).
target_count: usizeNumber of failover targets the server returned.
expires_in: Option<Duration>Remaining time-to-live. None if the entry has already expired
(cache eviction is lazy: expired entries linger until the next
resolve() for an overlapping prefix).
Trait Implementations§
Source§impl Clone for DfsCacheEntry
impl Clone for DfsCacheEntry
Source§fn clone(&self) -> DfsCacheEntry
fn clone(&self) -> DfsCacheEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DfsCacheEntry
impl Debug for DfsCacheEntry
Auto Trait Implementations§
impl Freeze for DfsCacheEntry
impl RefUnwindSafe for DfsCacheEntry
impl Send for DfsCacheEntry
impl Sync for DfsCacheEntry
impl Unpin for DfsCacheEntry
impl UnsafeUnpin for DfsCacheEntry
impl UnwindSafe for DfsCacheEntry
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