pub struct StsHttpService<H: StsHandler> { /* private fields */ }Expand description
Hyper Service implementation for STS.
Wraps an StsHandler implementation and routes incoming HTTP
requests to the appropriate STS operation handler.
Implementations§
Source§impl<H: StsHandler> StsHttpService<H>
impl<H: StsHandler> StsHttpService<H>
Sourcepub fn new(handler: Arc<H>, config: StsHttpConfig) -> Self
pub fn new(handler: Arc<H>, config: StsHttpConfig) -> Self
Create a new StsHttpService.
Trait Implementations§
Source§impl<H: StsHandler> Clone for StsHttpService<H>
impl<H: StsHandler> Clone for StsHttpService<H>
Source§impl<H: Debug + StsHandler> Debug for StsHttpService<H>
impl<H: Debug + StsHandler> Debug for StsHttpService<H>
Source§impl<H: StsHandler> Service<Request<Incoming>> for StsHttpService<H>
impl<H: StsHandler> Service<Request<Incoming>> for StsHttpService<H>
Source§type Response = Response<StsResponseBody>
type Response = Response<StsResponseBody>
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service. Read more
Auto Trait Implementations§
impl<H> Freeze for StsHttpService<H>
impl<H> !RefUnwindSafe for StsHttpService<H>
impl<H> Send for StsHttpService<H>
impl<H> Sync for StsHttpService<H>
impl<H> Unpin for StsHttpService<H>
impl<H> UnsafeUnpin for StsHttpService<H>
impl<H> !UnwindSafe for StsHttpService<H>
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