Struct tor_config::load::ResolutionResults
source · #[non_exhaustive]pub struct ResolutionResults<T> {
pub value: T,
pub unrecognized: Vec<DisfavouredKey>,
pub deprecated: Vec<DisfavouredKey>,
}
Expand description
Results of a successful resolve_return_disfavoured
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.value: T
The configuration, successfully parsed
unrecognized: Vec<DisfavouredKey>
Any config keys which were found in the input, but not recognized (and so, ignored)
deprecated: Vec<DisfavouredKey>
Any config keys which were found, but have been declared deprecated
Trait Implementations§
source§impl<T: Clone> Clone for ResolutionResults<T>
impl<T: Clone> Clone for ResolutionResults<T>
source§fn clone(&self) -> ResolutionResults<T>
fn clone(&self) -> ResolutionResults<T>
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for ResolutionResults<T>where T: RefUnwindSafe,
impl<T> Send for ResolutionResults<T>where T: Send,
impl<T> Sync for ResolutionResults<T>where T: Sync,
impl<T> Unpin for ResolutionResults<T>where T: Unpin,
impl<T> UnwindSafe for ResolutionResults<T>where T: 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