Struct salvo::prelude::RustlsListener
source · [−]pub struct RustlsListener<C> { /* private fields */ }
Expand description
RustlsListener
Implementations
sourceimpl RustlsListener<Once<Ready<Arc<ServerConfig>>>>
impl RustlsListener<Once<Ready<Arc<ServerConfig>>>>
sourcepub fn with_rustls_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
pub fn with_rustls_config(
config: RustlsConfig
) -> RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>
Create new RustlsListenerBuilder with RustlsConfig.
sourcepub fn try_with_rustls_config(
config: RustlsConfig
) -> Result<RustlsListenerBuilder<Once<Ready<Arc<ServerConfig>>>>, Error>
pub fn try_with_rustls_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.
sourceimpl<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
sourceimpl<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.
sourcefn 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.
sourceimpl<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>>,
sourcefn join<T>(self, other: T) -> JoinedListener<Self, T>
fn join<T>(self, other: T) -> JoinedListener<Self, T>
Join current Listener with the other.
impl<'__pin, C> Unpin for RustlsListener<C> where
__Origin<'__pin, C>: Unpin,
Auto Trait Implementations
impl<C> !RefUnwindSafe for RustlsListener<C>
impl<C> Send for RustlsListener<C> where
C: Send,
impl<C> Sync for RustlsListener<C> where
C: Sync,
impl<C> !UnwindSafe for RustlsListener<C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more