#[non_exhaustive]pub enum ReloadError {
InFlight,
Marker(Error),
Stage {
stage: &'static str,
error: String,
},
StageAndRollback {
stage: &'static str,
error: String,
rollback: Option<String>,
marker: Option<String>,
},
}Expand description
Why a reload did not complete.
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.
InFlight
Another reload is running in this process.
Marker(Error)
The marker could not be written at the start: nothing was changed.
Stage
A stage failed and the rollback succeeded.
StageAndRollback
A stage failed and the rollback, or the failed-marker write, also failed. Every error is kept: the host must not continue as if the old daemon were intact.
Trait Implementations§
Source§impl Debug for ReloadError
impl Debug for ReloadError
Source§impl Display for ReloadError
impl Display for ReloadError
Source§impl Error for ReloadError
impl Error for ReloadError
1.30.0 · 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 !RefUnwindSafe for ReloadError
impl !UnwindSafe for ReloadError
impl Freeze for ReloadError
impl Send for ReloadError
impl Sync for ReloadError
impl Unpin for ReloadError
impl UnsafeUnpin for ReloadError
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