pub enum ErrorData {
Show 15 variants
InvalidCommand {
message: String,
},
CommandNotFound {
command_id: String,
},
InvalidStateTransition {
from: String,
to: String,
},
CommandExpired {
command_id: String,
},
StorageOperationFailed {
message: String,
operation: Option<String>,
path: Option<String>,
},
KvOperationFailed {
operation: String,
key: String,
message: String,
},
TransportDispatchFailed {
message: String,
transport_type: Option<String>,
target: Option<String>,
},
InvalidEnvelope {
message: String,
field: Option<String>,
},
AgentError {
message: String,
deployment_id: Option<String>,
},
SerializationFailed {
message: String,
data_type: Option<String>,
},
HttpOperationFailed {
message: String,
method: Option<String>,
url: Option<String>,
},
OperationNotSupported {
message: String,
operation: Option<String>,
},
Conflict {
message: String,
resource_id: Option<String>,
},
LeaseNotFound {
lease_id: String,
},
Other {
message: String,
},
}Expand description
Errors that occur in the commands protocol.
Variants§
InvalidCommand
Command validation failed or contains invalid data.
CommandNotFound
Requested command ID was not found.
InvalidStateTransition
Invalid state transition attempted on command.
CommandExpired
Command has expired and can no longer be processed.
StorageOperationFailed
Storage backend operation failed.
Fields
KvOperationFailed
Key-value store operation failed.
Fields
TransportDispatchFailed
Transport dispatch to agent failed.
Fields
InvalidEnvelope
Command envelope validation or parsing failed.
Fields
AgentError
Agent reported an error during command processing.
Fields
SerializationFailed
Serialization or deserialization operation failed.
Fields
HttpOperationFailed
HTTP operation failed during command processing.
Fields
OperationNotSupported
Operation is not supported by the current configuration.
Fields
Conflict
Resource conflict detected (e.g., concurrent modification).
Fields
LeaseNotFound
Requested lease ID was not found.
Other
Generic commands error for uncommon cases.
Trait Implementations§
Source§impl AlienErrorData for ErrorData
impl AlienErrorData for ErrorData
Source§fn http_status_code(&self) -> u16
fn http_status_code(&self) -> u16
HTTP status code for this error (defaults to 500).
Source§fn retryable_inherit(&self) -> Option<bool>
fn retryable_inherit(&self) -> Option<bool>
Whether to inherit the retryable flag from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§fn internal_inherit(&self) -> Option<bool>
fn internal_inherit(&self) -> Option<bool>
Whether to inherit the internal flag from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§fn http_status_code_inherit(&self) -> Option<u16>
fn http_status_code_inherit(&self) -> Option<u16>
Whether to inherit the HTTP status code from the source error.
Returns None if this error should inherit from source, Some(value) for explicit value.
Source§fn human_layer_presentation(&self) -> HumanLayerPresentation
fn human_layer_presentation(&self) -> HumanLayerPresentation
Controls whether this error layer should be shown in the default human CLI renderer.
Source§impl<'de> Deserialize<'de> for ErrorData
impl<'de> Deserialize<'de> for ErrorData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorData
impl RefUnwindSafe for ErrorData
impl Send for ErrorData
impl Sync for ErrorData
impl Unpin for ErrorData
impl UnsafeUnpin for ErrorData
impl UnwindSafe for ErrorData
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 moreCreates a shared type from an unshared type.