pub struct DialCandidate {
pub priority: usize,
pub start_delay_sec: Duration,
pub timeout: Duration,
pub mode: DialMode,
}Expand description
A candidate endpoint for a control plane connection.
Fields§
§priority: usizeThe priority of this candidate.
Higher priorities are preferred over lower ones.
start_delay_sec: DurationHow long to delay before attempting to use this candidate.
timeout: DurationTimeout before giving up on this candidate.
mode: DialModeThe mode with which to connect.
Trait Implementations§
Source§impl Clone for DialCandidate
impl Clone for DialCandidate
Source§fn clone(&self) -> DialCandidate
fn clone(&self) -> DialCandidate
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 DialCandidate
impl Debug for DialCandidate
impl Eq for DialCandidate
Source§impl Ord for DialCandidate
impl Ord for DialCandidate
Source§fn cmp(&self, other: &DialCandidate) -> Ordering
fn cmp(&self, other: &DialCandidate) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DialCandidate
impl PartialEq for DialCandidate
Source§fn eq(&self, other: &DialCandidate) -> bool
fn eq(&self, other: &DialCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DialCandidate
impl PartialOrd for DialCandidate
impl StructuralPartialEq for DialCandidate
Source§impl TryFrom<&ControlIpCandidate<'_>> for DialCandidate
impl TryFrom<&ControlIpCandidate<'_>> for DialCandidate
Source§impl TryFrom<ControlIpCandidate<'_>> for DialCandidate
impl TryFrom<ControlIpCandidate<'_>> for DialCandidate
Auto Trait Implementations§
impl Freeze for DialCandidate
impl RefUnwindSafe for DialCandidate
impl Send for DialCandidate
impl Sync for DialCandidate
impl Unpin for DialCandidate
impl UnsafeUnpin for DialCandidate
impl UnwindSafe for DialCandidate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.