pub enum Monitor {
Disabled,
Loop {
port: u16,
},
Echo {
port: u16,
echo: u16,
},
Unix,
}Expand description
How the connection is monitored.
Variants§
Disabled
-M 0: no monitoring; react only to ssh exiting and to signals.
Loop
-M port: a loop of forwardings. Write to port, read back on port + 1.
Echo
-M port:echo: a remote echo service. port carries both directions.
Unix
-M unix: the same loop, over UNIX-domain sockets. No ports to pick and
none to collide, at either end.
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub fn forwards(
&self,
host: IpAddr,
unix: Option<&UnixPaths>,
remote_sock: &Path,
) -> Vec<OsString>
pub fn forwards( &self, host: IpAddr, unix: Option<&UnixPaths>, remote_sock: &Path, ) -> Vec<OsString>
The ssh arguments that build the monitor path (§1.3 of the plan).
unix and remote_sock are consulted only for Monitor::Unix, where
the remote path is different on every ssh start.
Sourcepub fn write_port(&self) -> Option<u16>
pub fn write_port(&self) -> Option<u16>
The port rash writes its probe to, if it uses one.
Trait Implementations§
impl Copy for Monitor
impl Eq for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnsafeUnpin for Monitor
impl UnwindSafe for Monitor
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