#[non_exhaustive]pub enum ForwardDirection {
Local,
Remote,
}Expand description
Direction of an SSH forwarding request.
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.
Local
Local forwarding: local listener to remote target.
Remote
Remote forwarding: remote listener to local target.
Trait Implementations§
Source§impl Clone for ForwardDirection
impl Clone for ForwardDirection
Source§fn clone(&self) -> ForwardDirection
fn clone(&self) -> ForwardDirection
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 ForwardDirection
impl Debug for ForwardDirection
Source§impl Hash for ForwardDirection
impl Hash for ForwardDirection
Source§impl PartialEq for ForwardDirection
impl PartialEq for ForwardDirection
Source§fn eq(&self, other: &ForwardDirection) -> bool
fn eq(&self, other: &ForwardDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ForwardDirection
impl Eq for ForwardDirection
impl StructuralPartialEq for ForwardDirection
Auto Trait Implementations§
impl Freeze for ForwardDirection
impl RefUnwindSafe for ForwardDirection
impl Send for ForwardDirection
impl Sync for ForwardDirection
impl Unpin for ForwardDirection
impl UnsafeUnpin for ForwardDirection
impl UnwindSafe for ForwardDirection
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