Trait flv_tls_proxy::authenticator::Authenticator [−][src]
pub trait Authenticator: Send + Sync { #[must_use] fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
incoming_tls_stream: &'life1 DefaultServerTlsStream,
target_tcp_stream: &'life2 TcpStream
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait; }
Abstracts logic to authenticate incoming stream and forward authoization context to target
Required methods
#[must_use]fn authenticate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
incoming_tls_stream: &'life1 DefaultServerTlsStream,
target_tcp_stream: &'life2 TcpStream
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn authenticate<'life0, 'life1, 'life2, 'async_trait>(&'life0 self,
incoming_tls_stream: &'life1 DefaultServerTlsStream,
target_tcp_stream: &'life2 TcpStream
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,