#[non_exhaustive]pub enum UpgradeError<E> {
Probe(E),
Replace(E),
Lock(Error),
Deadline,
}Expand description
Failure to obtain a live daemon satisfying the caller’s version policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Probe(E)
A health probe failed, rather than reporting an absent daemon.
Replace(E)
The caller’s replacement operation failed.
Lock(Error)
The upgrade lock could not be opened or acquired.
Deadline
The shared deadline expired during a probe, lock wait, or replacement.
Trait Implementations§
Source§impl<E: Debug> Debug for UpgradeError<E>
impl<E: Debug> Debug for UpgradeError<E>
Source§impl<E: Display> Display for UpgradeError<E>
impl<E: Display> Display for UpgradeError<E>
Source§impl<E: Error + 'static> Error for UpgradeError<E>
impl<E: Error + 'static> Error for UpgradeError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> !RefUnwindSafe for UpgradeError<E>
impl<E> !UnwindSafe for UpgradeError<E>
impl<E> Freeze for UpgradeError<E>where
E: Freeze,
impl<E> Send for UpgradeError<E>where
E: Send,
impl<E> Sync for UpgradeError<E>where
E: Sync,
impl<E> Unpin for UpgradeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for UpgradeError<E>where
E: UnsafeUnpin,
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