[][src]Enum goods::Error

pub enum Error<A: Asset> {
    NotFound,
    Asset(Arc<A::Error>),
    Source(Arc<dyn Display + Send + Sync>),
}

Error occured in process of asset loading.

Variants

NotFound

Asset was not found among registered sources.

Asset(Arc<A::Error>)

Asset instance decoding or building failed.

Specifically this error may occur in Asset::build and Format::decode.

Source(Arc<dyn Display + Send + Sync>)

Source in which asset was found failed to load it.

Trait Implementations

impl<A> Clone for Error<A> where
    A: Asset
[src]

impl<A> Debug for Error<A> where
    A: Asset
[src]

impl<A> Display for Error<A> where
    A: Asset
[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Error<A>

impl<A> Send for Error<A> where
    <A as Asset>::Error: Send + Sync

impl<A> Sync for Error<A> where
    <A as Asset>::Error: Send + Sync

impl<A> Unpin for Error<A>

impl<A> !UnwindSafe for Error<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.