pub enum ConfigError {
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
NoConfigDir,
UnsupportedAgentSessionVersion(u8),
AgentSessionNotFound(AgentSessionId),
AgentSessionProviderMismatch {
id: AgentSessionId,
expected: AgentTool,
reported: AgentTool,
},
AgentSessionProcessMismatch {
id: AgentSessionId,
expected: Option<AgentProcessId>,
reported: AgentProcessId,
},
AgentSessionAlreadyOwned {
id: AgentSessionId,
owner: AgentProcessId,
},
RelativeProjectConfig {
name: ProjectName,
path: PathBuf,
},
Parse(Error),
InvalidStopPolicy {
kind: ProcessKind,
name: ProcessName,
},
}Expand description
Errors from workspace configuration and project registry operations.
Variants§
Read
The configuration file could not be read from disk.
Write
The configuration file could not be written to disk.
NoConfigDir
No writable config directory could be located on this platform.
UnsupportedAgentSessionVersion(u8)
The session-state file uses a schema newer than this binary understands.
AgentSessionNotFound(AgentSessionId)
A lifecycle update referenced a session no longer present in state.
AgentSessionProviderMismatch
A lifecycle event came from a provider that does not own the session.
Fields
id: AgentSessionIdSession whose provider rejected the lifecycle event.
AgentSessionProcessMismatch
A lifecycle event came from a descendant instead of the managed provider process.
Fields
id: AgentSessionIdSession whose provider process rejected the lifecycle event.
expected: Option<AgentProcessId>Process currently owning the managed agent session.
reported: AgentProcessIdProcess that emitted the lifecycle event.
AgentSessionAlreadyOwned
A concurrent Muster instance already owns the managed agent session.
Fields
id: AgentSessionIdSession whose ownership claim was rejected.
owner: AgentProcessIdLive provider process retaining ownership.
RelativeProjectConfig
A legacy registry entry has no stable location outside its original launch directory.
Fields
name: ProjectNameRegistered project whose config path is ambiguous.
Parse(Error)
The configuration was not valid YAML or violated the schema.
InvalidStopPolicy
A non-command process configured command-only graceful shutdown.
Fields
kind: ProcessKindSection containing the invalid process.
name: ProcessNameName of the invalid process.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConfigError> for CliError
impl From<ConfigError> for CliError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Source§impl From<ConfigError> for MusterError
impl From<ConfigError> for MusterError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigError
impl !UnwindSafe for ConfigError
impl Freeze for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more