pub struct ResolutionPolicy {
pub prefer_local: bool,
pub allow_remote: bool,
}Expand description
Basic locality policy used by the default provider selector.
Fields§
§prefer_local: boolPrefer a healthy local provider over remote candidates.
allow_remote: boolPermit discovered remote providers to be selected.
Trait Implementations§
Source§impl Clone for ResolutionPolicy
impl Clone for ResolutionPolicy
Source§fn clone(&self) -> ResolutionPolicy
fn clone(&self) -> ResolutionPolicy
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 ResolutionPolicy
Source§impl Debug for ResolutionPolicy
impl Debug for ResolutionPolicy
Source§impl Default for ResolutionPolicy
impl Default for ResolutionPolicy
impl Eq for ResolutionPolicy
Source§impl PartialEq for ResolutionPolicy
impl PartialEq for ResolutionPolicy
impl StructuralPartialEq for ResolutionPolicy
Auto Trait Implementations§
impl Freeze for ResolutionPolicy
impl RefUnwindSafe for ResolutionPolicy
impl Send for ResolutionPolicy
impl Sync for ResolutionPolicy
impl Unpin for ResolutionPolicy
impl UnsafeUnpin for ResolutionPolicy
impl UnwindSafe for ResolutionPolicy
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