pub struct OpenSshConnector { /* private fields */ }Expand description
Strict OpenSSH connection factory.
Implementations§
Source§impl OpenSshConnector
impl OpenSshConnector
Sourcepub fn new(
connect_timeout: Duration,
server_alive_interval: Duration,
exec_permits: usize,
) -> FleetResult<Self>
pub fn new( connect_timeout: Duration, server_alive_interval: Duration, exec_permits: usize, ) -> FleetResult<Self>
Creates a connector with explicit nonzero bounds.
Sourcepub fn plan(&self, host: &HostRecord) -> FleetResult<OpenSshConnectPlan>
pub fn plan(&self, host: &HostRecord) -> FleetResult<OpenSshConnectPlan>
Derives the exact strict connection plan for one SSH host.
Trait Implementations§
Source§impl Clone for OpenSshConnector
impl Clone for OpenSshConnector
Source§fn clone(&self) -> OpenSshConnector
fn clone(&self) -> OpenSshConnector
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 ConnectionFactory for OpenSshConnector
impl ConnectionFactory for OpenSshConnector
Source§type Connection = OpenSshConnection
type Connection = OpenSshConnection
Concrete connection handle cached by consumers.
Source§fn connect<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = FleetResult<Self::Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn connect<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = FleetResult<Self::Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Opens a connection for the exact host revision.
Source§fn close<'life0, 'life1, 'async_trait>(
&'life0 self,
connection: &'life1 Self::Connection,
) -> Pin<Box<dyn Future<Output = FleetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn close<'life0, 'life1, 'async_trait>(
&'life0 self,
connection: &'life1 Self::Connection,
) -> Pin<Box<dyn Future<Output = FleetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Closes a connection explicitly when invalidated or evicted.
Source§impl Debug for OpenSshConnector
impl Debug for OpenSshConnector
Auto Trait Implementations§
impl Freeze for OpenSshConnector
impl RefUnwindSafe for OpenSshConnector
impl Send for OpenSshConnector
impl Sync for OpenSshConnector
impl Unpin for OpenSshConnector
impl UnsafeUnpin for OpenSshConnector
impl UnwindSafe for OpenSshConnector
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