#[non_exhaustive]pub enum ForwardingError {
AckError,
PeerError(String),
ProtocolJson(Error),
ProtocolMsgpack(Error),
Protocol(Box<str>),
ProtocolUnexpectedMessage(Box<str>, Box<dyn Debug + Send + Sync>),
Wormhole(WormholeError),
TransitConnect(TransitConnectError),
Transit(TransitError),
IO(Error),
}
Expand description
An error occurred when establishing a port forwarding session
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.
AckError
Transfer was not acknowledged by peer
PeerError(String)
Something went wrong on the other side
ProtocolJson(Error)
Some deserialization went wrong, we probably got some garbage
ProtocolMsgpack(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
ProtocolUnexpectedMessage(Box<str>, Box<dyn Debug + Send + Sync>)
Unexpected message (protocol error)
Wormhole(WormholeError)
Wormhole connection error
TransitConnect(TransitConnectError)
Error while establishing transit connection
Transit(TransitError)
Transit error
IO(Error)
I/O error
Trait Implementations§
Source§impl Debug for ForwardingError
impl Debug for ForwardingError
Source§impl Display for ForwardingError
impl Display for ForwardingError
Source§impl Error for ForwardingError
impl Error for ForwardingError
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 ForwardingError
impl From<Error> for ForwardingError
Source§impl From<Error> for ForwardingError
impl From<Error> for ForwardingError
Source§impl From<Error> for ForwardingError
impl From<Error> for ForwardingError
Source§impl From<TransitConnectError> for ForwardingError
impl From<TransitConnectError> for ForwardingError
Source§fn from(source: TransitConnectError) -> Self
fn from(source: TransitConnectError) -> Self
Converts to this type from the input type.
Source§impl From<TransitError> for ForwardingError
impl From<TransitError> for ForwardingError
Source§fn from(source: TransitError) -> Self
fn from(source: TransitError) -> 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.
Auto Trait Implementations§
impl !Freeze for ForwardingError
impl !RefUnwindSafe for ForwardingError
impl Send for ForwardingError
impl Sync for ForwardingError
impl Unpin for ForwardingError
impl !UnwindSafe for ForwardingError
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