pub struct ForwardedUnixSocket { /* private fields */ }Expand description
RAII guard over one local-to-remote Unix socket forward.
Implementations§
Source§impl ForwardedUnixSocket
impl ForwardedUnixSocket
Sourcepub async fn open(
connection: &OpenSshConnection,
host: &HostRecord,
remote_path: impl Into<PathBuf>,
cancellation: &CancellationToken,
) -> FleetResult<Self>
pub async fn open( connection: &OpenSshConnection, host: &HostRecord, remote_path: impl Into<PathBuf>, cancellation: &CancellationToken, ) -> FleetResult<Self>
Opens and secures a local Unix socket forwarding to a remote absolute path.
Sourcepub async fn close(self) -> FleetResult<()>
pub async fn close(self) -> FleetResult<()>
Explicitly closes the forward and removes the local socket.
Trait Implementations§
Source§impl Drop for ForwardedUnixSocket
impl Drop for ForwardedUnixSocket
Auto Trait Implementations§
impl Freeze for ForwardedUnixSocket
impl RefUnwindSafe for ForwardedUnixSocket
impl Send for ForwardedUnixSocket
impl Sync for ForwardedUnixSocket
impl Unpin for ForwardedUnixSocket
impl UnsafeUnpin for ForwardedUnixSocket
impl UnwindSafe for ForwardedUnixSocket
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