#[non_exhaustive]pub enum RendezvousError {
ProtocolJson(Error),
Protocol(Box<str>),
Server(Box<str>),
Login(Vec<String>),
IO(Error),
}Expand description
An error occurred when connecting to the rendezvous server
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
Protocol(Box<str>)
A generic string message for “something went wrong”, i.e. the server sent some bullshit message order
Server(Box<str>)
The server sent us an error message
Login(Vec<String>)
Server wants a login permission, but we don’t suppport any of these
IO(Error)
Websocket I/O error
Trait Implementations§
source§impl Debug for RendezvousError
impl Debug for RendezvousError
source§impl Display for RendezvousError
impl Display for RendezvousError
source§impl Error for RendezvousError
impl Error for RendezvousError
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 RendezvousError
impl From<Error> for RendezvousError
source§impl From<Error> for RendezvousError
impl From<Error> for RendezvousError
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.
Auto Trait Implementations§
impl !Freeze for RendezvousError
impl !RefUnwindSafe for RendezvousError
impl Send for RendezvousError
impl Sync for RendezvousError
impl Unpin for RendezvousError
impl !UnwindSafe for RendezvousError
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