pub enum SdkError {
Connection {
description: String,
},
Protocol {
description: String,
},
Serialization {
description: String,
},
TypeValidation {
description: String,
},
Backpressure {
reason: String,
},
Conversation {
conversation_id: String,
description: String,
},
Store {
description: String,
},
}Expand description
Error taxonomy returned by the Rust SDK API surface.
The SDK keeps application code independent from transport, protocol framing, and core implementation error types. Concrete embedded and remote adapters map their internal failures into these variants.
Variants§
Connection
Establishing, keeping, or recovering a client connection failed.
Protocol
Encoding, decoding, or interpreting SDK-internal protocol state failed.
Serialization
Serialising an outbound value or deserialising an inbound value failed.
TypeValidation
A typed message did not satisfy the schema declared for its channel.
Backpressure
A publish operation encountered application-visible backpressure.
Conversation
A conversation operation failed.
Fields
Store
Persisted subscription or recovery state could not be read or written.
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SdkError
impl RefUnwindSafe for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl UnsafeUnpin for SdkError
impl UnwindSafe for SdkError
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