pub struct TlsAcceptor { /* private fields */ }Expand description
RusTLS based Acceptor service
Implementations§
Source§impl TlsAcceptor
impl TlsAcceptor
pub fn new(cfg: Arc<ServerConfig>) -> TlsAcceptor
Trait Implementations§
Source§impl Debug for TlsAcceptor
impl Debug for TlsAcceptor
Source§impl From<ServerConfig> for TlsAcceptor
impl From<ServerConfig> for TlsAcceptor
Source§fn from(cfg: ServerConfig) -> TlsAcceptor
fn from(cfg: ServerConfig) -> TlsAcceptor
Converts to this type from the input type.
Source§impl<F, St> Service<St, Io<F>> for TlsAcceptorwhere
F: Filter,
impl<F, St> Service<St, Io<F>> for TlsAcceptorwhere
F: Filter,
Source§async fn ready(
&self,
_: Ctx<'_, TlsAcceptor, St>,
) -> Result<(), <TlsAcceptor as Service<St, Io<F>>>::Error>
async fn ready( &self, _: Ctx<'_, TlsAcceptor, St>, ) -> Result<(), <TlsAcceptor as Service<St, Io<F>>>::Error>
Waits until the service is ready to process a request. Read more
Source§async fn call(
&self,
io: Io<F>,
_: Ctx<'_, TlsAcceptor, St>,
) -> Result<<TlsAcceptor as Service<St, Io<F>>>::Res, <TlsAcceptor as Service<St, Io<F>>>::Error>
async fn call( &self, io: Io<F>, _: Ctx<'_, TlsAcceptor, St>, ) -> Result<<TlsAcceptor as Service<St, Io<F>>>::Res, <TlsAcceptor as Service<St, Io<F>>>::Error>
Processes a request and asynchronously returns the response. Read more
Source§fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
Maps this service’s output to a different type, returning a new service. Read more
Source§fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
Maps this service’s error to a different type, returning a new service. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TlsAcceptor
impl !Send for TlsAcceptor
impl !Sync for TlsAcceptor
impl !UnwindSafe for TlsAcceptor
impl Freeze for TlsAcceptor
impl Unpin for TlsAcceptor
impl UnsafeUnpin for TlsAcceptor
Blanket Implementations§
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<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
Source§fn into_service(self) -> S
fn into_service(self) -> S
Converts this value into a service.