pub enum AraComError {
Transport {
message: String,
},
Serialization {
message: String,
},
Deserialization {
message: String,
},
ServiceNotAvailable {
service_id: ServiceId,
instance_id: InstanceId,
},
Timeout {
timeout_ms: u64,
},
Discovery {
message: String,
},
Subscription {
message: String,
},
Application {
code: u8,
message: String,
},
Protocol {
return_code: ReturnCode,
},
Io(Error),
}Expand description
Error type returned by all ara-com and transport-backend operations.
Variants cover transport failures, serialization issues, service
discovery problems, and protocol-level errors. Transport backends
may convert their own error types into AraComError via From impls.
Variants§
Transport
A transport-level failure (e.g. socket closed, send failed).
Serialization
A value could not be encoded to the SOME/IP wire format.
Deserialization
A received payload could not be decoded from the wire format.
ServiceNotAvailable
The requested service instance was not found or is offline.
Timeout
A request/response call exceeded the configured timeout.
Discovery
A service-discovery operation failed (e.g. multicast unreachable).
Subscription
An event-group subscription was rejected or could not be established.
Application
An application-level error returned by the server in a response.
Protocol
A SOME/IP protocol-level error indicated by the return code.
Fields
return_code: ReturnCodeIo(Error)
An underlying I/O error (e.g. socket bind failure).
Trait Implementations§
Source§impl Debug for AraComError
impl Debug for AraComError
Source§impl Display for AraComError
impl Display for AraComError
Source§impl Error for AraComError
impl Error for AraComError
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()