Enum external_ip::Policy
source · pub enum Policy {
All,
First,
Random,
}
Expand description
Policies for Consensus resolution
Variants§
All
Requires all sources to be queried, it will ignore the sources returning errors but and it will return the IP with the most replies as the result.
First
Will test the sources one by one in order until there’s one success and will return it as the result.
Random
Will test the sources one by one in random order until there’s one success and will return it as the result.
Trait Implementations§
impl Copy for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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