pub enum SrvSpawnError {
BinaryNotFound(String),
SpawnFailed(String),
EstartTimeout,
EstartChannelClosed,
MigrationFailed(String),
NeedsPrepare(String),
DataDirHeld,
}Expand description
Errors during srv spawn — granular enough that the launcher can log the right diagnostic.
Variants§
BinaryNotFound(String)
SpawnFailed(String)
EstartTimeout
EstartChannelClosed
MigrationFailed(String)
srv reported AGENTMUXSRV-MIGRATION-FAILED and exited 1 before ESTART
(SPEC_MIGRATION_SYSTEM_HARDENING_2026_08_03 Phase 1). Carries the
reason srv gave. Distinct from EstartTimeout so the supervisor can
show the user a real message instead of “timeout (30s)” — and so it
can do it immediately rather than 30s later.
NeedsPrepare(String)
srv found data that needs agentmux-srv migrate --prepare and exited
before writing anything (AGENTMUXSRV-NEEDS-PREPARE). spawn_srv
handles it itself; it reaches a caller only if srv still asks after a
prepare, which spawn_srv turns into MigrationFailed.
DataDirHeld
Another srv already holds this data folder’s srv.lock, and this one exited before starting
(DATA_DIR_HELD_EXIT): a desktop app opened while a headless server runs on the same channel, or
two servers started at once. The supervisor says so plainly instead of letting the splash fail.
Trait Implementations§
Source§impl Debug for SrvSpawnError
impl Debug for SrvSpawnError
Auto Trait Implementations§
impl Freeze for SrvSpawnError
impl RefUnwindSafe for SrvSpawnError
impl Send for SrvSpawnError
impl Sync for SrvSpawnError
impl Unpin for SrvSpawnError
impl UnsafeUnpin for SrvSpawnError
impl UnwindSafe for SrvSpawnError
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
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.