#[non_exhaustive]pub enum ForwardingErrorKind {
Bind,
Listen,
Accept,
Connect,
GlobalRequest,
ChannelOpen,
StreamCopy,
Cancel,
Shutdown,
}Expand description
Forwarding failure category.
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.
Bind
Local or remote bind failed.
Listen
Listener setup failed.
Accept
Accepting a forwarded connection failed.
Connect
Connecting to a forwarding target failed.
GlobalRequest
SSH global forwarding request failed.
ChannelOpen
Opening a forwarding channel failed.
StreamCopy
Bidirectional stream copy failed.
Cancel
Forwarding cancellation failed.
Shutdown
Forwarding shutdown failed.
Trait Implementations§
Source§impl Clone for ForwardingErrorKind
impl Clone for ForwardingErrorKind
Source§fn clone(&self) -> ForwardingErrorKind
fn clone(&self) -> ForwardingErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForwardingErrorKind
impl Debug for ForwardingErrorKind
Source§impl Hash for ForwardingErrorKind
impl Hash for ForwardingErrorKind
Source§impl PartialEq for ForwardingErrorKind
impl PartialEq for ForwardingErrorKind
Source§fn eq(&self, other: &ForwardingErrorKind) -> bool
fn eq(&self, other: &ForwardingErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ForwardingErrorKind
impl Eq for ForwardingErrorKind
impl StructuralPartialEq for ForwardingErrorKind
Auto Trait Implementations§
impl Freeze for ForwardingErrorKind
impl RefUnwindSafe for ForwardingErrorKind
impl Send for ForwardingErrorKind
impl Sync for ForwardingErrorKind
impl Unpin for ForwardingErrorKind
impl UnsafeUnpin for ForwardingErrorKind
impl UnwindSafe for ForwardingErrorKind
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