pub enum ControlPlaneError {
Runtime(RuntimeError),
Registry(RegistryError),
Config(ConfigError),
Card(String),
PortInUse {
port: u16,
holder: String,
},
}Expand description
Errors a control-plane operation can return.
Variants§
Runtime(RuntimeError)
A runtime operation failed (spawn, not-found, already-running, …).
Registry(RegistryError)
A registry operation failed.
Config(ConfigError)
The agent’s config could not be loaded or parsed.
Card(String)
The agent card could not be built from the config.
PortInUse
The port this agent would bind is already claimed by a different agent in
the live fleet. Same rule as
FleetConflict::Port, checked against
what is deployed rather than within one submission.
Trait Implementations§
Source§impl Debug for ControlPlaneError
impl Debug for ControlPlaneError
Source§impl Display for ControlPlaneError
impl Display for ControlPlaneError
Source§impl Error for ControlPlaneError
impl Error for ControlPlaneError
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<ConfigError> for ControlPlaneError
impl From<ConfigError> for ControlPlaneError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for ControlPlaneError
impl From<RegistryError> for ControlPlaneError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for ControlPlaneError
impl From<RuntimeError> for ControlPlaneError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ControlPlaneError
impl !UnwindSafe for ControlPlaneError
impl Freeze for ControlPlaneError
impl Send for ControlPlaneError
impl Sync for ControlPlaneError
impl Unpin for ControlPlaneError
impl UnsafeUnpin for ControlPlaneError
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
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> ⓘ
Converts
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> ⓘ
Converts
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 more