pub enum CacheError {
CachePolicyJsonDecodeError(Error),
DatabaseError(DatabaseError),
TransactionError(TransactionError),
TableError(TableError),
StorageError(StorageError),
CommitError(CommitError),
GridCoordinatesHttpError(RegionNameToGridCoordinatesError),
RegionNameHttpError(GridCoordinatesToRegionNameError),
RegionNameError(RegionNameError),
SystemTimeError(SystemTimeError),
}Expand description
describes an error that can occur as part of the cache operation for the RegionNameToGridCoordinatesCache
Variants§
CachePolicyJsonDecodeError(Error)
error decoding the JSON serialized CachePolicy
DatabaseError(DatabaseError)
redb database error
TransactionError(TransactionError)
redb transaction error
TableError(TableError)
redb table error
StorageError(StorageError)
redb storage error
CommitError(CommitError)
redb commit error
GridCoordinatesHttpError(RegionNameToGridCoordinatesError)
error looking up grid coordinates via HTTP
RegionNameHttpError(GridCoordinatesToRegionNameError)
error looking up region name via HTTP
RegionNameError(RegionNameError)
error creating region name from cached string
SystemTimeError(SystemTimeError)
error handling system time for cache age calculations
Trait Implementations§
Source§impl Debug for CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
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<CacheError> for MapError
impl From<CacheError> for MapError
Source§fn from(source: CacheError) -> Self
fn from(source: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<CacheError> for USBNotecardToGridRectangleError
impl From<CacheError> for USBNotecardToGridRectangleError
Source§fn from(source: CacheError) -> Self
fn from(source: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<CommitError> for CacheError
impl From<CommitError> for CacheError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for CacheError
impl From<DatabaseError> for CacheError
Source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CacheError
impl From<Error> for CacheError
Source§impl From<GridCoordinatesToRegionNameError> for CacheError
impl From<GridCoordinatesToRegionNameError> for CacheError
Source§fn from(source: GridCoordinatesToRegionNameError) -> Self
fn from(source: GridCoordinatesToRegionNameError) -> Self
Converts to this type from the input type.
Source§impl From<RegionNameError> for CacheError
impl From<RegionNameError> for CacheError
Source§fn from(source: RegionNameError) -> Self
fn from(source: RegionNameError) -> Self
Converts to this type from the input type.
Source§impl From<RegionNameToGridCoordinatesError> for CacheError
impl From<RegionNameToGridCoordinatesError> for CacheError
Source§fn from(source: RegionNameToGridCoordinatesError) -> Self
fn from(source: RegionNameToGridCoordinatesError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for CacheError
impl From<StorageError> for CacheError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for CacheError
impl From<SystemTimeError> for CacheError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for CacheError
impl From<TableError> for CacheError
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for CacheError
impl From<TransactionError> for CacheError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CacheError
impl !RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnsafeUnpin for CacheError
impl !UnwindSafe for CacheError
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> 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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.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.