Enum thingvellir::UpstreamError
source · pub enum UpstreamError {
OperationAborted,
KeyNotFound,
DriverError {
error: Arc<Error>,
},
SerializationError {
error: Arc<Error>,
},
}
Variants§
Implementations§
source§impl UpstreamError
impl UpstreamError
pub fn is_not_found(&self) -> bool
pub fn serialization_error<E>(error: E) -> Self
Trait Implementations§
source§impl Clone for UpstreamError
impl Clone for UpstreamError
source§fn clone(&self) -> UpstreamError
fn clone(&self) -> UpstreamError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UpstreamError
impl Debug for UpstreamError
source§impl Display for UpstreamError
impl Display for UpstreamError
source§impl Error for UpstreamError
impl Error for UpstreamError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for UpstreamError
impl From<Error> for UpstreamError
source§impl From<UpstreamError> for ShardError
impl From<UpstreamError> for ShardError
source§fn from(error: UpstreamError) -> Self
fn from(error: UpstreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpstreamError
impl RefUnwindSafe for UpstreamError
impl Send for UpstreamError
impl Sync for UpstreamError
impl Unpin for UpstreamError
impl UnwindSafe for UpstreamError
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> ToPrimaryKey for Twhere
T: ToString,
impl<T> ToPrimaryKey for Twhere
T: ToString,
source§fn to_primary_key(&self) -> String
fn to_primary_key(&self) -> String
Converts the struct to a string for usage as a primary key in a data store.