pub enum BarrierUpgradeError {
Barrier(BarrierRuntimeError),
MissingStation(StationId),
Restore {
station_id: StationId,
error: StationError,
},
}Expand description
Error produced while applying an upgrade hook around a frozen barrier.
Variants§
Barrier(BarrierRuntimeError)
Barrier was missing or not frozen.
MissingStation(StationId)
Station disappeared between snapshot export and restore.
Restore
Restoring a migrated snapshot failed.
Trait Implementations§
Source§impl Clone for BarrierUpgradeError
impl Clone for BarrierUpgradeError
Source§fn clone(&self) -> BarrierUpgradeError
fn clone(&self) -> BarrierUpgradeError
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 BarrierUpgradeError
impl Debug for BarrierUpgradeError
Source§impl Display for BarrierUpgradeError
impl Display for BarrierUpgradeError
impl Eq for BarrierUpgradeError
Source§impl Error for BarrierUpgradeError
impl Error for BarrierUpgradeError
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()
Source§impl From<BarrierRuntimeError> for BarrierUpgradeError
impl From<BarrierRuntimeError> for BarrierUpgradeError
Source§fn from(value: BarrierRuntimeError) -> Self
fn from(value: BarrierRuntimeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BarrierUpgradeError
impl PartialEq for BarrierUpgradeError
impl StructuralPartialEq for BarrierUpgradeError
Auto Trait Implementations§
impl Freeze for BarrierUpgradeError
impl RefUnwindSafe for BarrierUpgradeError
impl Send for BarrierUpgradeError
impl Sync for BarrierUpgradeError
impl Unpin for BarrierUpgradeError
impl UnsafeUnpin for BarrierUpgradeError
impl UnwindSafe for BarrierUpgradeError
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