pub enum Preferred {
Always,
Until(Instant),
Never,
}Expand description
Whether an address is preferred, or deprecated.
A deprecated address keeps working for connections that already use it, but is avoided when a source address is chosen for a new one.
Variants§
Always
Preferred for as long as it is assigned.
Until(Instant)
Preferred until this instant, deprecated after it.
Never
Deprecated.
Trait Implementations§
impl Copy for Preferred
impl Eq for Preferred
impl StructuralPartialEq for Preferred
Auto Trait Implementations§
impl Freeze for Preferred
impl RefUnwindSafe for Preferred
impl Send for Preferred
impl Sync for Preferred
impl Unpin for Preferred
impl UnsafeUnpin for Preferred
impl UnwindSafe for Preferred
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