[−][src]Enum ichen_openprotocol::OpenProtocolError
Result error type.
Variants
EmptyField(&'a str)
The value of a field is the empty string ""
or containing all white-spaces,
which is not allowed as value of that field.
The value of a field is not valid.
InconsistentState(&'a str)
The value of a field is not consistent with the matching value in the state
.
InconsistentField(&'a str)
The value of a field is not consistent with the matching value in the
Controller
structure.
An enforced constraint is broken.
JsonError(Error)
Error when serializing/deserializing JSON.
An unexpected system error.
Trait Implementations
impl<'a> Debug for OpenProtocolError<'a>
[src]
impl<'a> Display for OpenProtocolError<'a>
[src]
impl<'_> Eq for OpenProtocolError<'_>
[src]
impl<'_> Error for OpenProtocolError<'_>
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl<'_> From<OpenProtocolError<'_>> for String
[src]
fn from(error: OpenProtocolError) -> Self
[src]
impl<'_> PartialEq<OpenProtocolError<'_>> for OpenProtocolError<'_>
[src]
fn eq(&self, other: &Self) -> bool
[src]
Implement PartialEq
for OpenProtocolError
.
Most variants already implement PartialEq
and are simply delegated.
The only variant that doesn't automatically implement PartialEq
is JsonError
which encapsulates a serde::error::Error
object that does not implement
PartialEq
. In this case, we test for equality simply by comparing the Debug
output of self
and other
.
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for OpenProtocolError<'a>
impl<'a> Send for OpenProtocolError<'a>
impl<'a> Sync for OpenProtocolError<'a>
impl<'a> Unpin for OpenProtocolError<'a>
impl<'a> !UnwindSafe for OpenProtocolError<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,