pub struct RemoteForward {
pub listen: RemoteForwardListen,
pub destination: Option<RemoteForwardDestination>,
}Expand description
Describes a complete RemoteForward directive.
A missing destination represents SOCKS proxy mode.
§Examples
Fields§
§listen: RemoteForwardListenListening endpoint on the remote machine.
destination: Option<RemoteForwardDestination>Optional destination on the local machine.
Implementations§
Source§impl RemoteForward
impl RemoteForward
Sourcepub fn new(
listen: RemoteForwardListen,
destination: Option<RemoteForwardDestination>,
) -> Self
pub fn new( listen: RemoteForwardListen, destination: Option<RemoteForwardDestination>, ) -> Self
Creates a remote forwarding specification.
Trait Implementations§
Source§impl Clone for RemoteForward
impl Clone for RemoteForward
Source§fn clone(&self) -> RemoteForward
fn clone(&self) -> RemoteForward
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 RemoteForward
impl Debug for RemoteForward
Source§impl Display for RemoteForward
impl Display for RemoteForward
impl Eq for RemoteForward
Source§impl PartialEq for RemoteForward
impl PartialEq for RemoteForward
impl StructuralPartialEq for RemoteForward
Auto Trait Implementations§
impl Freeze for RemoteForward
impl RefUnwindSafe for RemoteForward
impl Send for RemoteForward
impl Sync for RemoteForward
impl Unpin for RemoteForward
impl UnsafeUnpin for RemoteForward
impl UnwindSafe for RemoteForward
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