Skip to main content

TransportCloseHandle

Trait TransportCloseHandle 

Source
pub trait TransportCloseHandle: Send + Sync {
    // Required method
    fn close<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Handle for closing a transport after it has been split.

Holds shared ownership of the transport and provides async cleanup.

Required Methods§

Source

fn close<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Closes the transport and cleans up all resources.

Implementors§