pub struct ConnectionPool;Implementations§
Source§impl ConnectionPool
impl ConnectionPool
pub fn new() -> Self
Sourcepub async fn acquire(
&self,
host_name: &str,
config: &ShuttleConfig,
root: &RootSecret,
) -> Result<Arc<Mutex<SshClient>>, ClientError>
pub async fn acquire( &self, host_name: &str, config: &ShuttleConfig, root: &RootSecret, ) -> Result<Arc<Mutex<SshClient>>, ClientError>
Create a fresh SSH connection to a host.
Each call opens a new connection and authenticates. This is intentional for v1 — connection reuse requires liveness probes and careful session lifecycle management that will come later.
Auto Trait Implementations§
impl Freeze for ConnectionPool
impl RefUnwindSafe for ConnectionPool
impl Send for ConnectionPool
impl Sync for ConnectionPool
impl Unpin for ConnectionPool
impl UnsafeUnpin for ConnectionPool
impl UnwindSafe for ConnectionPool
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