Struct eva_common::Error
source · [−]pub struct Error { /* private fields */ }
Implementations
sourceimpl 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 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
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DeserializerError> for Error
impl From<DeserializerError> for Error
sourcefn from(err: DeserializerError) -> Error
fn from(err: DeserializerError) -> Error
Converts to this type from the input type.
sourceimpl From<FromHexError> for Error
impl From<FromHexError> for Error
sourcefn from(err: FromHexError) -> Error
fn from(err: FromHexError) -> Error
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Converts to this type from the input type.
sourceimpl From<Infallible> for Error
impl From<Infallible> for Error
sourcefn from(_err: Infallible) -> Error
fn from(_err: Infallible) -> Error
Converts to this type from the input type.
sourceimpl From<IpNetworkError> for Error
impl From<IpNetworkError> for Error
sourcefn from(err: IpNetworkError) -> Error
fn from(err: IpNetworkError) -> Error
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
sourcefn from(err: ParseFloatError) -> Error
fn from(err: ParseFloatError) -> Error
Converts to this type from the input type.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
sourceimpl From<SerializerError> for Error
impl From<SerializerError> for Error
sourcefn from(err: SerializerError) -> Error
fn from(err: SerializerError) -> Error
Converts to this type from the input type.
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(err: TryFromSliceError) -> Error
fn from(err: TryFromSliceError) -> Error
Converts to this type from the input type.
sourceimpl From<TryLockError> for Error
impl From<TryLockError> for Error
sourcefn from(err: TryLockError) -> Error
fn from(err: TryLockError) -> Error
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more