pub enum ChangeStreamError {
Unavailable(Box<dyn Error + Send + Sync>),
Timeout(Box<dyn Error + Send + Sync>),
Failure(Box<dyn Error + Send + Sync>),
}Expand description
Why a ChangeStream could not begin a change.
The variant determines the ErrorKind of the failed
request. The source carries the details and can be a plain message:
use objectstore_service::change_stream::ChangeStreamError;
let error = ChangeStreamError::Failure("constraint violated".into());
assert_eq!(error.to_string(), "change stream failed");Variants§
The sink is temporarily unavailable.
Timeout(Box<dyn Error + Send + Sync>)
The sink did not respond in time.
Failure(Box<dyn Error + Send + Sync>)
Any other failure.
Trait Implementations§
Source§impl Debug for ChangeStreamError
impl Debug for ChangeStreamError
Source§impl Display for ChangeStreamError
impl Display for ChangeStreamError
Source§impl Error for ChangeStreamError
impl Error for ChangeStreamError
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<ChangeStreamError> for Error
impl From<ChangeStreamError> for Error
Source§fn from(source: ChangeStreamError) -> Self
fn from(source: ChangeStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ChangeStreamError
impl !UnwindSafe for ChangeStreamError
impl Freeze for ChangeStreamError
impl Send for ChangeStreamError
impl Sync for ChangeStreamError
impl Unpin for ChangeStreamError
impl UnsafeUnpin for ChangeStreamError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].