Enum cache_loader_async::cache_api::CacheLoadingError [−][src]
pub enum CacheLoadingError<E: Debug> { CommunicationError(CacheCommunicationError), NoData(), LoadingError(E), }
Variants
CommunicationError(CacheCommunicationError)
Implementations
impl<E: Debug> CacheLoadingError<E>
[src]
impl<E: Debug> CacheLoadingError<E>
[src]pub fn as_loading_error(&self) -> Option<&E>
[src]
pub fn into_loading_error(self) -> Option<E>
[src]
pub fn as_communication_error(&self) -> Option<&CacheCommunicationError>
[src]
pub fn into_communication_error(self) -> Option<CacheCommunicationError>
[src]
Trait Implementations
impl<E: Debug> Debug for CacheLoadingError<E>
[src]
impl<E: Debug> Debug for CacheLoadingError<E>
[src]impl<E: Debug> Display for CacheLoadingError<E>
[src]
impl<E: Debug> Display for CacheLoadingError<E>
[src]impl<E: Debug> Error for CacheLoadingError<E>
[src]
impl<E: Debug> Error for CacheLoadingError<E>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<E> RefUnwindSafe for CacheLoadingError<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for CacheLoadingError<E> where
E: Send,
E: Send,
impl<E> Sync for CacheLoadingError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for CacheLoadingError<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for CacheLoadingError<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more