Enum warmy::load::StoreErrorOr
[−]
[src]
pub enum StoreErrorOr<T, C, M = ()> where
T: Load<C, M>, { StoreError(StoreError), ResError(T::Error), }
Either a store error or a resource loading error.
Variants
StoreError(StoreError)
A store error.
ResError(T::Error)
A resource error.
Trait Implementations
impl<T, C, M> Clone for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: Clone,
[src]
T: Load<C, M>,
T::Error: Clone,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, C, M> Eq for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: Eq,
[src]
T: Load<C, M>,
T::Error: Eq,
impl<T, C, M> PartialEq for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: PartialEq,
[src]
T: Load<C, M>,
T::Error: PartialEq,
fn eq(&self, rhs: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T, C, M> Debug for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: Debug,
[src]
T: Load<C, M>,
T::Error: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T, C, M> Display for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: Debug,
[src]
T: Load<C, M>,
T::Error: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<T, C, M> Error for StoreErrorOr<T, C, M> where
T: Load<C, M>,
T::Error: Debug,
[src]
T: Load<C, M>,
T::Error: Debug,
Auto Trait Implementations
impl<T, C, M> Send for StoreErrorOr<T, C, M> where
<T as Load<C, M>>::Error: Send,
<T as Load<C, M>>::Error: Send,
impl<T, C, M> Sync for StoreErrorOr<T, C, M> where
<T as Load<C, M>>::Error: Sync,
<T as Load<C, M>>::Error: Sync,