pub enum WorterbuchError {
Show 24 variants
IllegalWildcard(RequestPattern),
IllegalMultiWildcard(RequestPattern),
MultiWildcardAtIllegalPosition(RequestPattern),
NoSuchValue(Key),
NotSubscribed,
IoError(Error, MetaData),
SerDeError(Error, MetaData),
InvalidServerResponse(MetaData),
Other(Box<dyn Error + Send + Sync>, MetaData),
ServerResponse(Err),
ProtocolNegotiationFailed(ProtocolVersionSegment),
ReadOnlyKey(Key),
AuthorizationRequired(Privilege),
AlreadyAuthorized,
Unauthorized(AuthorizationError),
NoPubStream(TransactionId),
NotLeader,
Cas,
CasVersionMismatch,
NotImplemented,
KeyIsLocked(Key),
KeyIsNotLocked(Key),
FeatureDisabled(MetaData),
ClientIdCollision(Uuid),
}Variants§
IllegalWildcard(RequestPattern)
IllegalMultiWildcard(RequestPattern)
MultiWildcardAtIllegalPosition(RequestPattern)
NoSuchValue(Key)
NotSubscribed
IoError(Error, MetaData)
SerDeError(Error, MetaData)
InvalidServerResponse(MetaData)
Other(Box<dyn Error + Send + Sync>, MetaData)
ServerResponse(Err)
ProtocolNegotiationFailed(ProtocolVersionSegment)
ReadOnlyKey(Key)
AuthorizationRequired(Privilege)
AlreadyAuthorized
NoPubStream(TransactionId)
NotLeader
Cas
CasVersionMismatch
NotImplemented
KeyIsLocked(Key)
KeyIsNotLocked(Key)
FeatureDisabled(MetaData)
ClientIdCollision(Uuid)
Trait Implementations§
Source§impl Debug for WorterbuchError
impl Debug for WorterbuchError
Source§impl Diagnostic for WorterbuchError
impl Diagnostic for WorterbuchError
Source§fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn help<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Additional help text related to this
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
URL to visit for a more detailed explanation/help about this
Diagnostic.Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codeAdditional related
Diagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
Source§impl Display for WorterbuchError
impl Display for WorterbuchError
Source§impl Error for WorterbuchError
impl Error for WorterbuchError
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<&WorterbuchError> for ErrorCode
impl From<&WorterbuchError> for ErrorCode
Source§fn from(e: &WorterbuchError) -> Self
fn from(e: &WorterbuchError) -> Self
Converts to this type from the input type.
Source§impl From<AuthorizationError> for WorterbuchError
impl From<AuthorizationError> for WorterbuchError
Source§fn from(source: AuthorizationError) -> Self
fn from(source: AuthorizationError) -> Self
Converts to this type from the input type.
Source§impl From<RecvError> for WorterbuchError
impl From<RecvError> for WorterbuchError
Source§impl From<WorterbuchError> for (StatusCode, String)
impl From<WorterbuchError> for (StatusCode, String)
Source§fn from(e: WorterbuchError) -> Self
fn from(e: WorterbuchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WorterbuchError
impl !RefUnwindSafe for WorterbuchError
impl Send for WorterbuchError
impl Sync for WorterbuchError
impl Unpin for WorterbuchError
impl UnsafeUnpin for WorterbuchError
impl !UnwindSafe for WorterbuchError
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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.