Struct eva_common::Error
source · pub struct Error { /* private fields */ }Implementations§
source§impl Error
impl Error
pub fn new<T: Display>(kind: ErrorKind, message: T) -> Self
pub fn new0(kind: ErrorKind) -> Self
pub fn newc(kind: ErrorKind, message: Option<impl Display>) -> Self
pub fn code(&self) -> i16
pub fn e<T: Display>(kind: ErrorKind, message: T) -> Self
pub fn not_found<T: Display>(message: T) -> Self
pub fn not_ready<T: Display>(message: T) -> Self
pub fn unsupported<T: Display>(message: T) -> Self
pub fn registry<T: Display>(message: T) -> Self
pub fn busy<T: Display>(message: T) -> Self
pub fn core<T: Display>(message: T) -> Self
pub fn io<T: Display>(message: T) -> Self
pub fn duplicate<T: Display>(message: T) -> Self
pub fn failed<T: Display>(message: T) -> Self
pub fn access<T: Display>(message: T) -> Self
pub fn access_more_data_required<T: Display>(message: T) -> Self
pub fn timeout() -> Self
pub fn aborted() -> Self
pub fn invalid_data<T: Display>(message: T) -> Self
pub fn invalid_params<T: Display>(message: T) -> Self
pub fn not_implemented<T: Display>(message: T) -> Self
pub fn kind(&self) -> ErrorKind
pub fn message(&self) -> Option<&str>
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DeserializerError> for Error
impl From<DeserializerError> for Error
source§fn from(err: DeserializerError) -> Error
fn from(err: DeserializerError) -> Error
Converts to this type from the input type.
source§impl From<ErrorStack> for Error
impl From<ErrorStack> for Error
source§fn from(err: ErrorStack) -> Error
fn from(err: ErrorStack) -> Error
Converts to this type from the input type.
source§impl From<FromHexError> for Error
impl From<FromHexError> for Error
source§fn from(err: FromHexError) -> Error
fn from(err: FromHexError) -> Error
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_err: Infallible) -> Error
fn from(_err: Infallible) -> Error
Converts to this type from the input type.
source§impl From<IpNetworkError> for Error
impl From<IpNetworkError> for Error
source§fn from(err: IpNetworkError) -> Error
fn from(err: IpNetworkError) -> Error
Converts to this type from the input type.
source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
source§fn from(err: ParseFloatError) -> Error
fn from(err: ParseFloatError) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
source§impl From<SerializerError> for Error
impl From<SerializerError> for Error
source§fn from(err: SerializerError) -> Error
fn from(err: SerializerError) -> Error
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(err: TryFromIntError) -> Error
fn from(err: TryFromIntError) -> Error
Converts to this type from the input type.
source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
source§fn from(err: TryFromSliceError) -> Error
fn from(err: TryFromSliceError) -> Error
Converts to this type from the input type.
source§impl From<TryLockError> for Error
impl From<TryLockError> for Error
source§fn from(err: TryLockError) -> Error
fn from(err: TryLockError) -> Error
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more