Struct salvo::prelude::RustlsListener
source · pub struct RustlsListener<C> { /* private fields */ }
Expand description
RustlsListener
Implementations§
source§impl<C> RustlsListener<C>
impl<C> RustlsListener<C>
sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Get the local address bound to this listener.
source§impl RustlsListener<Once<Ready<Arc<ServerConfig>>>>
impl RustlsListener<Once<Ready<Arc<ServerConfig>>>>
sourcepub fn with_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
pub fn with_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
Create new RustlsListenerBuilder with RustlsConfig.
sourcepub fn try_with_config(
config: RustlsConfig
) -> Result<RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>, Error>
pub fn try_with_config(
config: RustlsConfig
) -> Result<RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>, Error>
Try to create new RustlsListenerBuilder with RustlsConfig.
sourcepub fn with_server_config(
config: impl Into<Arc<ServerConfig>>
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
pub fn with_server_config(
config: impl Into<Arc<ServerConfig>>
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
Create new RustlsListenerBuilder with ServerConfig.
source§impl<C> RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
impl<C> RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
sourcepub fn with_config_stream(config_stream: C) -> RustlsListenerBuilder<C>
pub fn with_config_stream(config_stream: C) -> RustlsListenerBuilder<C>
Create new RustlsListener with config stream.
Trait Implementations§
source§impl<C> Accept for RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
impl<C> Accept for RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
§type Conn = RustlsStream
type Conn = RustlsStream
The connection type that can be accepted.
source§fn poll_accept(
self: Pin<&mut RustlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<RustlsListener<C> as Accept>::Conn, <RustlsListener<C> as Accept>::Error>>>
fn poll_accept(
self: Pin<&mut RustlsListener<C>>,
cx: &mut Context<'_>
) -> Poll<Option<Result<<RustlsListener<C> as Accept>::Conn, <RustlsListener<C> as Accept>::Error>>>
Poll to accept the next connection.
source§impl<C> Listener for RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
impl<C> Listener for RustlsListener<C>where
C: Stream,
<C as Stream>::Item: Into<Arc<ServerConfig>>,
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.