pub enum PortRetryBehavior {
FailFast,
FallbackToOsAssigned,
TryNext,
}
Expand description
Retry behavior on port binding failures
Variants§
FailFast
Fail immediately if port unavailable
FallbackToOsAssigned
Fall back to OS-assigned port on conflict
TryNext
Try next port in range (only for Range binding)
Trait Implementations§
Source§impl Clone for PortRetryBehavior
impl Clone for PortRetryBehavior
Source§fn clone(&self) -> PortRetryBehavior
fn clone(&self) -> PortRetryBehavior
Returns a duplicate 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 moreSource§impl Debug for PortRetryBehavior
impl Debug for PortRetryBehavior
Source§impl Default for PortRetryBehavior
impl Default for PortRetryBehavior
Source§impl PartialEq for PortRetryBehavior
impl PartialEq for PortRetryBehavior
impl Copy for PortRetryBehavior
impl Eq for PortRetryBehavior
impl StructuralPartialEq for PortRetryBehavior
Auto Trait Implementations§
impl Freeze for PortRetryBehavior
impl RefUnwindSafe for PortRetryBehavior
impl Send for PortRetryBehavior
impl Sync for PortRetryBehavior
impl Unpin for PortRetryBehavior
impl UnwindSafe for PortRetryBehavior
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> Equivalent<K> for Q
impl<Q, K> Equivalent<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.