pub enum GlwEventCacheError {
CachePolicyJsonDecodeError(Error),
DatabaseError(DatabaseError),
TransactionError(TransactionError),
TableError(TableError),
StorageError(StorageError),
CommitError(CommitError),
FetchError(FetchError),
SystemTimeError(SystemTimeError),
}Expand description
Errors that arise from the three-tier cache around GLW events.
Variants§
CachePolicyJsonDecodeError(Error)
error decoding the JSON serialised cache policy
DatabaseError(DatabaseError)
the underlying redb database returned an error opening the file
TransactionError(TransactionError)
the underlying redb transaction returned an error
TableError(TableError)
the underlying redb table returned an error
StorageError(StorageError)
the underlying redb storage returned an error
CommitError(CommitError)
the underlying redb commit returned an error
FetchError(FetchError)
the upstream HTTP fetch failed
SystemTimeError(SystemTimeError)
system time error while computing cache freshness
Trait Implementations§
Source§impl Debug for GlwEventCacheError
impl Debug for GlwEventCacheError
Source§impl Display for GlwEventCacheError
impl Display for GlwEventCacheError
Source§impl Error for GlwEventCacheError
impl Error for GlwEventCacheError
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<CommitError> for GlwEventCacheError
impl From<CommitError> for GlwEventCacheError
Source§fn from(source: CommitError) -> Self
fn from(source: CommitError) -> Self
Converts to this type from the input type.
Source§impl From<DatabaseError> for GlwEventCacheError
impl From<DatabaseError> for GlwEventCacheError
Source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for GlwEventCacheError
impl From<Error> for GlwEventCacheError
Source§impl From<FetchError> for GlwEventCacheError
impl From<FetchError> for GlwEventCacheError
Source§fn from(source: FetchError) -> Self
fn from(source: FetchError) -> Self
Converts to this type from the input type.
Source§impl From<GlwEventCacheError> for Error
impl From<GlwEventCacheError> for Error
Source§fn from(source: GlwEventCacheError) -> Self
fn from(source: GlwEventCacheError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for GlwEventCacheError
impl From<StorageError> for GlwEventCacheError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for GlwEventCacheError
impl From<SystemTimeError> for GlwEventCacheError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TableError> for GlwEventCacheError
impl From<TableError> for GlwEventCacheError
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for GlwEventCacheError
impl From<TransactionError> for GlwEventCacheError
Source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GlwEventCacheError
impl !UnwindSafe for GlwEventCacheError
impl Freeze for GlwEventCacheError
impl Send for GlwEventCacheError
impl Sync for GlwEventCacheError
impl Unpin for GlwEventCacheError
impl UnsafeUnpin for GlwEventCacheError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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,
impl<T> Read<Exclusive, BecauseExclusive> 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.