pub enum MemoryBackendError {
BackendUnavailable {
code: String,
message: String,
},
CommitUnknown {
code: String,
message: String,
},
Unavailable {
code: String,
message: String,
},
Invalid {
code: String,
message: String,
},
Denied {
code: String,
message: String,
},
Timeout {
code: String,
message: String,
},
Cancelled {
code: String,
message: String,
},
Incompatible {
code: String,
message: String,
},
Store {
code: String,
message: String,
},
Internal {
code: String,
message: String,
},
}Variants§
Implementations§
Source§impl MemoryBackendError
impl MemoryBackendError
pub fn kind(&self) -> MemoryBackendErrorKind
pub fn code(&self) -> &str
pub fn message(&self) -> &str
pub fn cancelled(message: impl Into<String>) -> Self
pub fn timeout(message: impl Into<String>) -> Self
Hub is not resident; callers may continue non-memory routes but must not fall back to a local memory authority.
Sourcepub fn commit_unknown(message: impl Into<String>) -> Self
pub fn commit_unknown(message: impl Into<String>) -> Self
A mutating request may have reached Hub before transport loss. It is unsafe to report a normal failure or retry with a new key.
Trait Implementations§
Source§impl Clone for MemoryBackendError
impl Clone for MemoryBackendError
Source§impl Debug for MemoryBackendError
impl Debug for MemoryBackendError
Source§impl Display for MemoryBackendError
impl Display for MemoryBackendError
impl Eq for MemoryBackendError
Source§impl Error for MemoryBackendError
impl Error for MemoryBackendError
1.30.0 · 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 PartialEq for MemoryBackendError
impl PartialEq for MemoryBackendError
impl StructuralPartialEq for MemoryBackendError
Auto Trait Implementations§
impl Forget for MemoryBackendError
impl Freeze for MemoryBackendError
impl Move for MemoryBackendError
impl RefUnwindSafe for MemoryBackendError
impl Send for MemoryBackendError
impl Sync for MemoryBackendError
impl Unpin for MemoryBackendError
impl UnsafeUnpin for MemoryBackendError
impl UnwindSafe for MemoryBackendError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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