Enum thingvellir::ShardError
source · pub enum ShardError {
ShardAtCapacity,
DataImmediatelyExpired,
UpstreamError {
error: UpstreamError,
},
ShardGone,
}
Variants§
Trait Implementations§
source§impl Clone for ShardError
impl Clone for ShardError
source§fn clone(&self) -> ShardError
fn clone(&self) -> ShardError
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 ShardError
impl Debug for ShardError
source§impl Display for ShardError
impl Display for ShardError
source§impl Error for ShardError
impl Error for ShardError
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<RecvError> for ShardError
impl From<RecvError> for ShardError
source§fn from(_error: OneShotRecvError) -> Self
fn from(_error: OneShotRecvError) -> Self
Converts to this type from the input type.
source§impl<T> From<SendError<T>> for ShardError
impl<T> From<SendError<T>> for ShardError
source§fn from(_error: MpscSendError<T>) -> Self
fn from(_error: MpscSendError<T>) -> Self
Converts to this type from the input type.
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 ShardError
impl RefUnwindSafe for ShardError
impl Send for ShardError
impl Sync for ShardError
impl Unpin for ShardError
impl UnwindSafe for ShardError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.