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§
Trait Implementations§
source§impl Debug for WormholeError
impl Debug for WormholeError
source§impl Display for WormholeError
impl Display for WormholeError
source§impl Error for WormholeError
impl Error for WormholeError
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<Error> for WormholeError
impl From<Error> for WormholeError
source§impl From<Infallible> for WormholeError
impl From<Infallible> for WormholeError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl From<RendezvousError> for WormholeError
impl From<RendezvousError> for WormholeError
source§fn from(source: RendezvousError) -> Self
fn from(source: RendezvousError) -> Self
Converts to this type from the input type.
source§impl From<WormholeError> for TransferError
impl From<WormholeError> for TransferError
source§fn 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§
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