error
ModuleThe error type of the client, JetStream, the key-value and object stores and services.
Contents
use utopia_nats::Error;Rust
pub enum ErrorWhy a NATS operation failed.
Rust
pub type CallbackError = Box<dyn std::error::Error + Send + Sync + 'static>An error raised by application code: a subscription callback, a service
endpoint handler, an option callback (on_error, on_slow_consumer, ...)
or a transport factory. It travels through the client unchanged.
Rust
pub type Result<T, E = Error> = std::result::Result<T, E>The result of a NATS operation.