Struct salvo::prelude::NativeTlsListener
source · pub struct NativeTlsListener<C> { /* private fields */ }
Expand description
NativeTlsListener
Implementations§
source§impl NativeTlsListener<Once<Ready<Identity>>>
impl NativeTlsListener<Once<Ready<Identity>>>
sourcepub fn with_config(
config: NativeTlsConfig
) -> NativeTlsListenerBuilder<Once<Ready<Identity>>>
pub fn with_config(
config: NativeTlsConfig
) -> NativeTlsListenerBuilder<Once<Ready<Identity>>>
Create new NativeTlsListenerBuilder with NativeTlsConfig.
sourcepub fn try_with_config(
config: NativeTlsConfig
) -> Result<NativeTlsListenerBuilder<Once<Ready<Identity>>>, Error>
pub fn try_with_config(
config: NativeTlsConfig
) -> Result<NativeTlsListenerBuilder<Once<Ready<Identity>>>, Error>
Try to create new NativeTlsListenerBuilder with NativeTlsConfig.
source§impl<C> NativeTlsListener<C>
impl<C> NativeTlsListener<C>
sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Get the local address bound to this listener.
source§impl<C> NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
sourcepub fn with_config_stream(config_stream: C) -> NativeTlsListenerBuilder<C>
pub fn with_config_stream(config_stream: C) -> NativeTlsListenerBuilder<C>
Create new NativeTlsListener with config stream.
Trait Implementations§
source§impl<C> Accept for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> Accept for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
§type Conn = NativeTlsStream
type Conn = NativeTlsStream
The connection type that can be accepted.
source§fn poll_accept(
self: Pin<&mut NativeTlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<NativeTlsListener<C> as Accept>::Conn, <NativeTlsListener<C> as Accept>::Error>>>
fn poll_accept(
self: Pin<&mut NativeTlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<NativeTlsListener<C> as Accept>::Conn, <NativeTlsListener<C> as Accept>::Error>>>
Poll to accept the next connection.
source§impl<C> Listener for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
impl<C> Listener for NativeTlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Identity>,
source§fn join<T>(self, other: T) -> JoinedListener<Self, T>where
Self: Sized,
fn join<T>(self, other: T) -> JoinedListener<Self, T>where
Self: Sized,
Join current Listener with the other.