pub struct SshContext<'a> {
pub alias: &'a str,
pub config_path: &'a Path,
pub askpass: Option<&'a str>,
pub bw_session: Option<&'a str>,
pub has_tunnel: bool,
}Expand description
Common SSH connection context passed to remote operations.
Fields§
§alias: &'a str§config_path: &'a Path§askpass: Option<&'a str>§bw_session: Option<&'a str>§has_tunnel: boolAuto Trait Implementations§
impl<'a> Freeze for SshContext<'a>
impl<'a> RefUnwindSafe for SshContext<'a>
impl<'a> Send for SshContext<'a>
impl<'a> Sync for SshContext<'a>
impl<'a> Unpin for SshContext<'a>
impl<'a> UnsafeUnpin for SshContext<'a>
impl<'a> UnwindSafe for SshContext<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more