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 Alien Remote Call (ARC) protocol.
Variants§
InvalidCommand
Command validation failed or contains invalid data.
CommandNotFound
Requested ARC 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
ARC 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 ARC 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
Source§fn retryable_inherit(&self) -> Option<bool>
fn retryable_inherit(&self) -> Option<bool>
Source§fn internal_inherit(&self) -> Option<bool>
fn internal_inherit(&self) -> Option<bool>
Source§fn http_status_code_inherit(&self) -> Option<u16>
fn http_status_code_inherit(&self) -> Option<u16>
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>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.