#[non_exhaustive]pub enum AckError {
LeaseExpired,
#[non_exhaustive] Rpc {
source: Arc<Error>,
},
ShutdownBeforeAck,
Shutdown(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Represents an error that can occur when acknowledging a message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LeaseExpired
The message’s lease expired before the client could acknowledge it.
The message has not been acknowledged, and will be redelivered, maybe to another client.
#[non_exhaustive]Rpc
The underlying RPC failed.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
ShutdownBeforeAck
Lease management shutdown before the client could acknowledge the message.
The client did not acknowledge the message. The service will redeliver message.
Shutdown(Box<dyn Error + Send + Sync + 'static>)
Error during shutdown.
The result of the acknowledgement is unknown. The service may or may not redeliver the message.
Trait Implementations§
Source§impl Error for AckError
impl Error for AckError
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 AckError
impl !RefUnwindSafe for AckError
impl Send for AckError
impl Sync for AckError
impl Unpin for AckError
impl UnsafeUnpin for AckError
impl !UnwindSafe for AckError
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§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.