pub struct SslAcceptor { /* private fields */ }Expand description
Support TLS server connections via openssl package
openssl feature enables Acceptor type
Implementations§
Source§impl SslAcceptor
impl SslAcceptor
Sourcepub fn new(acceptor: SslAcceptor) -> SslAcceptor
pub fn new(acceptor: SslAcceptor) -> SslAcceptor
Create default openssl acceptor service
Trait Implementations§
Source§impl Clone for SslAcceptor
impl Clone for SslAcceptor
Source§fn clone(&self) -> SslAcceptor
fn clone(&self) -> SslAcceptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SslAcceptor
impl Debug for SslAcceptor
Source§impl From<SslAcceptor> for SslAcceptor
impl From<SslAcceptor> for SslAcceptor
Source§fn from(acceptor: SslAcceptor) -> SslAcceptor
fn from(acceptor: SslAcceptor) -> SslAcceptor
Converts to this type from the input type.
Source§impl<F, St> Service<St, Io<F>> for SslAcceptorwhere
F: Filter,
impl<F, St> Service<St, Io<F>> for SslAcceptorwhere
F: Filter,
Source§async fn ready(
&self,
_: Ctx<'_, SslAcceptor, St>,
) -> Result<(), <SslAcceptor as Service<St, Io<F>>>::Error>
async fn ready( &self, _: Ctx<'_, SslAcceptor, St>, ) -> Result<(), <SslAcceptor 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<'_, SslAcceptor, St>,
) -> Result<<SslAcceptor as Service<St, Io<F>>>::Res, <SslAcceptor as Service<St, Io<F>>>::Error>
async fn call( &self, io: Io<F>, _: Ctx<'_, SslAcceptor, St>, ) -> Result<<SslAcceptor as Service<St, Io<F>>>::Res, <SslAcceptor 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 SslAcceptor
impl !Send for SslAcceptor
impl !Sync for SslAcceptor
impl !UnwindSafe for SslAcceptor
impl Freeze for SslAcceptor
impl Unpin for SslAcceptor
impl UnsafeUnpin for SslAcceptor
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.