Enum magic_wormhole::WormholeError
source · [−]#[non_exhaustive]
pub enum WormholeError {
ProtocolJson(Error),
ServerError(RendezvousError),
Protocol(Box<str>),
PakeFailed,
Crypto,
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ProtocolJson(Error)
Some deserialization went wrong, we probably got some garbage
ServerError(RendezvousError)
Protocol(Box<str>)
A generic string message for “something went wrong”, i.e. the server sent some bullshit message order
PakeFailed
Crypto
Implementations
sourceimpl WormholeError
impl WormholeError
Trait Implementations
sourceimpl Debug for WormholeError
impl Debug for WormholeError
sourceimpl Display for WormholeError
impl Display for WormholeError
sourceimpl Error for WormholeError
impl Error for WormholeError
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>
🔬 This is a nightly-only experimental API. (
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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for WormholeError
impl From<Error> for WormholeError
sourceimpl From<Infallible> for WormholeError
impl From<Infallible> for WormholeError
sourcefn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
sourceimpl From<RendezvousError> for WormholeError
impl From<RendezvousError> for WormholeError
sourcefn from(source: RendezvousError) -> Self
fn from(source: RendezvousError) -> Self
Converts to this type from the input type.
sourceimpl From<WormholeError> for ForwardingError
impl From<WormholeError> for ForwardingError
sourcefn from(source: WormholeError) -> Self
fn from(source: WormholeError) -> Self
Converts to this type from the input type.
sourceimpl From<WormholeError> for TransferError
impl From<WormholeError> for TransferError
sourcefn from(source: WormholeError) -> Self
fn from(source: WormholeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for WormholeError
impl Send for WormholeError
impl Sync for WormholeError
impl Unpin for WormholeError
impl !UnwindSafe for WormholeError
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