Struct redo::Error
[−]
[src]
pub struct Error<R, C: Command<R>>(pub C, pub C::Err);
Custom error kind that holds the error and the command that caused the error.
Trait Implementations
impl<R: Clone, C: Clone + Command<R>> Clone for Error<R, C> where
C::Err: Clone,
[src]
C::Err: Clone,
fn clone(&self) -> Error<R, C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Copy, C: Copy + Command<R>> Copy for Error<R, C> where
C::Err: Copy,
[src]
C::Err: Copy,
impl<R: Debug, C: Debug + Command<R>> Debug for Error<R, C> where
C::Err: Debug,
[src]
C::Err: Debug,
impl<R: Default, C: Default + Command<R>> Default for Error<R, C> where
C::Err: Default,
[src]
C::Err: Default,
impl<R: Eq, C: Eq + Command<R>> Eq for Error<R, C> where
C::Err: Eq,
[src]
C::Err: Eq,
impl<R: PartialEq, C: PartialEq + Command<R>> PartialEq for Error<R, C> where
C::Err: PartialEq,
[src]
C::Err: PartialEq,
fn eq(&self, __arg_0: &Error<R, C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error<R, C>) -> bool
This method tests for !=
.
impl<R: Hash, C: Hash + Command<R>> Hash for Error<R, C> where
C::Err: Hash,
[src]
C::Err: Hash,
fn hash<__HRC: Hasher>(&self, __arg_0: &mut __HRC)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<R: Ord, C: Ord + Command<R>> Ord for Error<R, C> where
C::Err: Ord,
[src]
C::Err: Ord,
fn cmp(&self, __arg_0: &Error<R, C>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<R: PartialOrd, C: PartialOrd + Command<R>> PartialOrd for Error<R, C> where
C::Err: PartialOrd,
[src]
C::Err: PartialOrd,
fn partial_cmp(&self, __arg_0: &Error<R, C>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Error<R, C>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Error<R, C>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Error<R, C>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Error<R, C>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<R, C: Command<R>> Display for Error<R, C> where
C::Err: Display,
[src]
C::Err: Display,
impl<R, C: Command<R>> Error for Error<R, C> where
R: Debug,
C: Debug,
C::Err: Error,
[src]
R: Debug,
C: Debug,
C::Err: Error,