pub enum CacheLoadingError<E: Debug> {
BackingError(BackingError),
CommunicationError(CacheCommunicationError),
NoData(),
LoadingError(E),
}
Variants
BackingError(BackingError)
CommunicationError(CacheCommunicationError)
NoData()
LoadingError(E)
Implementations
sourceimpl<E: Debug> CacheLoadingError<E>
impl<E: Debug> CacheLoadingError<E>
pub fn as_loading_error(&self) -> Option<&E>
pub fn into_loading_error(self) -> Option<E>
pub fn as_communication_error(&self) -> Option<&CacheCommunicationError>
pub fn into_communication_error(self) -> Option<CacheCommunicationError>
Trait Implementations
sourceimpl<E: Debug + Debug> Debug for CacheLoadingError<E>
impl<E: Debug + Debug> Debug for CacheLoadingError<E>
sourceimpl<E: Debug> Display for CacheLoadingError<E>
impl<E: Debug> Display for CacheLoadingError<E>
sourceimpl<E: Debug> Error for CacheLoadingError<E>where
Self: Debug + Display,
impl<E: Debug> Error for CacheLoadingError<E>where
Self: Debug + Display,
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<E> !RefUnwindSafe for CacheLoadingError<E>
impl<E> Send for CacheLoadingError<E>where
E: Send,
impl<E> Sync for CacheLoadingError<E>where
E: Sync,
impl<E> Unpin for CacheLoadingError<E>where
E: Unpin,
impl<E> !UnwindSafe for CacheLoadingError<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more