#[non_exhaustive]pub enum ControlPersist {
Forever,
ClosedAfterInitialConnection,
IdleFor(NonZeroUsize),
}
Expand description
Specifies how long the controlling ssh process should stay alive.
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.
Forever
Will stay alive indefinitely.
ClosedAfterInitialConnection
Will be closed after the initial connection is closed
IdleFor(NonZeroUsize)
If the ssh control server has been idle for specified duration (in seconds), it will exit.
Trait Implementations§
Source§impl Clone for ControlPersist
impl Clone for ControlPersist
Source§fn clone(&self) -> ControlPersist
fn clone(&self) -> ControlPersist
Returns a copy of the value. Read more
1.0.0 · 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 ControlPersist
impl Debug for ControlPersist
Source§impl Default for ControlPersist
impl Default for ControlPersist
Source§fn default() -> ControlPersist
fn default() -> ControlPersist
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControlPersist
impl RefUnwindSafe for ControlPersist
impl Send for ControlPersist
impl Sync for ControlPersist
impl Unpin for ControlPersist
impl UnwindSafe for ControlPersist
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