pub struct EnvironmentQuery {
pub resolution: Resolution,
pub probe_services: bool,
pub use_cache: bool,
pub write_cache: bool,
}Expand description
What a caller wants resolved, and what it will pay for.
Fields§
§resolution: ResolutionHow much may be read.
probe_services: boolWhether a running server’s address may be contacted. A resolution that says no
reports every service unknown, which is what it knows.
use_cache: boolWhether the cache may supply the tiers this resolution cannot compute.
write_cache: boolWhether what was computed is written back for the next fast resolution.
Implementations§
Source§impl EnvironmentQuery
impl EnvironmentQuery
Trait Implementations§
Source§impl Clone for EnvironmentQuery
impl Clone for EnvironmentQuery
Source§fn clone(&self) -> EnvironmentQuery
fn clone(&self) -> EnvironmentQuery
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 moreimpl Copy for EnvironmentQuery
Source§impl Debug for EnvironmentQuery
impl Debug for EnvironmentQuery
impl Eq for EnvironmentQuery
Source§impl PartialEq for EnvironmentQuery
impl PartialEq for EnvironmentQuery
Source§fn eq(&self, other: &EnvironmentQuery) -> bool
fn eq(&self, other: &EnvironmentQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvironmentQuery
Auto Trait Implementations§
impl Freeze for EnvironmentQuery
impl RefUnwindSafe for EnvironmentQuery
impl Send for EnvironmentQuery
impl Sync for EnvironmentQuery
impl Unpin for EnvironmentQuery
impl UnsafeUnpin for EnvironmentQuery
impl UnwindSafe for EnvironmentQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.