pub enum UpgradeError {
Quiesce(Error),
Migrate(SrvSpawnError),
}Expand description
Why run_migration_upgrade didn’t complete.
Variants§
Quiesce(Error)
Stopping the running srv failed at the OS level (not “srv refused to
stop” — quiesce_srv always eventually forces that; this is e.g.
a wait() syscall failure).
Migrate(SrvSpawnError)
The migration subprocess itself failed — see SrvSpawnError for
which case (spawn failure, a real AGENTMUXSRV-MIGRATION-FAILED,
etc). The data is left exactly as agentmux-srv migrate left it:
possibly partially migrated (no batch transaction — see the spec’s
§4.3 “partial application” note), with a pre-migration backup
already written under ~/.agentmux/shared/backups/.
Trait Implementations§
Source§impl Debug for UpgradeError
impl Debug for UpgradeError
Auto Trait Implementations§
impl !RefUnwindSafe for UpgradeError
impl !UnwindSafe for UpgradeError
impl Freeze for UpgradeError
impl Send for UpgradeError
impl Sync for UpgradeError
impl Unpin for UpgradeError
impl UnsafeUnpin for UpgradeError
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.