pub enum PulsarError {
Client(ClientError),
Config(String),
Schema(SchemaError),
Other(String),
}Expand description
Top-level errors surfaced by the façade.
Variants§
Client(ClientError)
Underlying tokio engine error.
Config(String)
Configuration error before any I/O happened.
Schema(SchemaError)
Schema encode / decode error from a crate::TypedProducer / crate::TypedConsumer.
Other(String)
Engine-agnostic error surfaced by a generic façade method that
dispatches through an extension trait (e.g.
crate::TransactionApi). Carries the runtime’s error message
stringified — the per-engine error type is recovered through
the runtime crate when full-fidelity diagnostics are needed.
Phase 4 of the D1 lift train (ADR-0026 §D1).
Trait Implementations§
Source§impl Debug for PulsarError
impl Debug for PulsarError
Source§impl Display for PulsarError
impl Display for PulsarError
Source§impl Error for PulsarError
impl Error for PulsarError
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<ClientError> for PulsarError
impl From<ClientError> for PulsarError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaError> for PulsarError
impl From<SchemaError> for PulsarError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PulsarError
impl !UnwindSafe for PulsarError
impl Freeze for PulsarError
impl Send for PulsarError
impl Sync for PulsarError
impl Unpin for PulsarError
impl UnsafeUnpin for PulsarError
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