pub enum TunnelTransport {
LocalListener,
Stream,
}Expand description
Selects which transport setup_tunnel returns. See the
module-level docs for when to pick each.
Variants§
LocalListener
Bind a local TCP listener; pump bytes through SSH.
Stream
Hand back a TunnelStream for direct injection into a
driver that exposes a custom-stream API (Postgres only
today via tokio_postgres::Config::connect_raw).
Trait Implementations§
Source§impl Clone for TunnelTransport
impl Clone for TunnelTransport
Source§fn clone(&self) -> TunnelTransport
fn clone(&self) -> TunnelTransport
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 moreimpl Copy for TunnelTransport
Auto Trait Implementations§
impl Freeze for TunnelTransport
impl RefUnwindSafe for TunnelTransport
impl Send for TunnelTransport
impl Sync for TunnelTransport
impl Unpin for TunnelTransport
impl UnsafeUnpin for TunnelTransport
impl UnwindSafe for TunnelTransport
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