pub struct RustlsListener<S, C, T, E> { /* private fields */ }Expand description
A wrapper of Listener with rustls.
Implementations§
Source§impl<S, C, T, E> RustlsListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: Listener + Send,
E: Error + Send,
impl<S, C, T, E> RustlsListener<S, C, T, E>where
S: IntoConfigStream<C> + Send + 'static,
C: TryInto<ServerConfig, Error = E> + Send + 'static,
T: Listener + Send,
E: Error + Send,
Sourcepub fn new(config_stream: S, inner: T) -> RustlsListener<S, C, T, E>
pub fn new(config_stream: S, inner: T) -> RustlsListener<S, C, T, E>
Create a new RustlsListener.
Trait Implementations§
Source§impl<S, C, T, E> Debug for RustlsListener<S, C, T, E>
impl<S, C, T, E> Debug for RustlsListener<S, C, T, E>
Source§impl<S, C, T, E> Listener for RustlsListener<S, C, T, E>
impl<S, C, T, E> Listener for RustlsListener<S, C, T, E>
Source§type Acceptor = RustlsAcceptor<Pin<Box<dyn Stream<Item = C> + Send>>, C, <T as Listener>::Acceptor, E>
type Acceptor = RustlsAcceptor<Pin<Box<dyn Stream<Item = C> + Send>>, C, <T as Listener>::Acceptor, E>
Acceptor type.
Source§async fn try_bind(
self,
) -> Result<<RustlsListener<S, C, T, E> as Listener>::Acceptor, Error>
async fn try_bind( self, ) -> Result<<RustlsListener<S, C, T, E> as Listener>::Acceptor, Error>
Bind and returns acceptor.
Auto Trait Implementations§
impl<S, C, T, E> Freeze for RustlsListener<S, C, T, E>
impl<S, C, T, E> RefUnwindSafe for RustlsListener<S, C, T, E>
impl<S, C, T, E> Send for RustlsListener<S, C, T, E>
impl<S, C, T, E> Sync for RustlsListener<S, C, T, E>
impl<S, C, T, E> Unpin for RustlsListener<S, C, T, E>
impl<S, C, T, E> UnwindSafe for RustlsListener<S, C, T, E>
Blanket Implementations§
Source§impl<Data> ApiSuccessResponse for Data
impl<Data> ApiSuccessResponse for Data
fn api_response<Meta>(self, meta: Option<Meta>) -> ApiResponse<Self, Meta>
fn api_response_without_meta<Meta>(self) -> ApiResponse<Self, Meta>
fn api_response_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> FutureTraceExt for Twhere
T: FutureExt,
impl<T> FutureTraceExt for Twhere
T: FutureExt,
Source§fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
fn with_current_context_span(self, otel_span: Span) -> WithContext<Self> ⓘ
Pass the span of opentelemetry to the current context of tracing.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request