#[non_exhaustive]pub enum WormholeError {
ProtocolJson(Error),
ServerError(RendezvousError),
Protocol(Box<str>),
PakeFailed,
Crypto,
UnclaimedNameplate(Nameplate),
CodeInvalid(ParseCodeError),
}
Expand description
An error occurred in the wormhole connection
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)
Corrupt message received from peer. Some deserialization went wrong, we probably got some garbage
ServerError(RendezvousError)
Error with the rendezvous server connection. Some deserialization went wrong, we probably got some garbage
Protocol(Box<str>)
A generic string message for “something went wrong”, i.e. the server sent some bullshit message order
PakeFailed
Key confirmation failed. If you didn’t mistype the code, this is a sign of an attacker guessing passwords. Please try again some time later.
Crypto
Cannot decrypt a received message
UnclaimedNameplate(Nameplate)
Nameplate is unclaimed
CodeInvalid(ParseCodeError)
The provided code is invalid
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)>
Returns 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<ParseCodeError> for WormholeError
impl From<ParseCodeError> for WormholeError
Source§fn from(source: ParseCodeError) -> Self
fn from(source: ParseCodeError) -> 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 ForwardingError
impl From<WormholeError> for ForwardingError
Source§fn from(source: WormholeError) -> Self
fn from(source: WormholeError) -> 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 !Freeze for WormholeError
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