Enum saltyrtc_client::errors::SaltyError
source · [−]pub enum SaltyError {
Crypto(String),
Decode(String),
Network(String),
Protocol(String),
NoSharedTask,
NoPeer,
Task(String),
Crash(String),
Timeout,
}
Expand description
Errors that are exposed to the user of the library.
Variants
Crypto(String)
A problem with encrypting or decrypting data.
Decode(String)
A problem when parsing or decoding data.
Network(String)
A network related problem.
Protocol(String)
A protocol related error.
NoSharedTask
No shared task was found.
NoPeer
Peer has not (yet) been determined.
Task(String)
A problem occured related to a task.
Crash(String)
An unexpected error. This should never happen and indicates a bug in the implementation.
Timeout
A future timed out.
Trait Implementations
sourceimpl Debug for SaltyError
impl Debug for SaltyError
sourceimpl Display for SaltyError
impl Display for SaltyError
sourceimpl Fail for SaltyError
impl Fail for SaltyError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl<F> From<TimeoutError<F>> for SaltyError
impl<F> From<TimeoutError<F>> for SaltyError
sourcefn from(_: TimeoutError<F>) -> Self
fn from(_: TimeoutError<F>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<TryLockError<T>> for SaltyError
impl<T> From<TryLockError<T>> for SaltyError
sourcefn from(e: TryLockError<T>) -> Self
fn from(e: TryLockError<T>) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SaltyError> for SaltyError
impl PartialEq<SaltyError> for SaltyError
sourcefn eq(&self, other: &SaltyError) -> bool
fn eq(&self, other: &SaltyError) -> bool
impl StructuralPartialEq for SaltyError
Auto Trait Implementations
impl RefUnwindSafe for SaltyError
impl Send for SaltyError
impl Sync for SaltyError
impl Unpin for SaltyError
impl UnwindSafe for SaltyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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