Struct hyper_static_server::Server [−][src]
Implementations
impl Server
[src]
impl Server
[src]
pub fn run_and_wait(_configuration: Configuration) -> Result<(), Error>
[src]
pub async fn run(_configuration: Configuration) -> Result<(), Error>
[src]
pub fn serve_and_wait(&self) -> Result<(), Error>
[src]
pub async fn serve(&'_ self) -> Result<(), Error>
[src]
impl Server
[src]
pub fn run_and_wait_with_handler<H, F>(
_configuration: Configuration,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
[src]
_configuration: Configuration,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
pub async fn run_with_handler<H, F>(
_configuration: Configuration,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
[src]
_configuration: Configuration,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
pub fn serve_and_wait_with_handler<H, F>(
&self,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
[src]
&self,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
pub async fn serve_with_handler<H, F>(
&'_ self,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
[src]
&'_ self,
_handler: H
) -> Result<(), Error> where
F: Future<Output = Result<Response<<H as Handler>::ResponseBody>, Error>> + Send + 'static,
H: Handler<Future = F> + Send + Sync + 'static + Clone,
impl Server
[src]
pub fn serve_builder(&self) -> Result<Builder<Accepter, ServerExecutor>, Error>
[src]
pub async fn serve_with_service_fn<S, SE, SF, SB, SBD, SBE>(
&'_ self,
_service: S
) -> Result<(), Error> where
S: FnMut(Request<Body>) -> SF + Send + 'static + Clone,
SE: Error + Send + Sync + 'static,
SF: Future<Output = Result<Response<SB>, SE>> + Send + 'static,
SB: Body<Data = SBD, Error = SBE> + Send + 'static,
SBD: Buf + Send + 'static,
SBE: Error + Send + Sync + 'static,
[src]
&'_ self,
_service: S
) -> Result<(), Error> where
S: FnMut(Request<Body>) -> SF + Send + 'static + Clone,
SE: Error + Send + Sync + 'static,
SF: Future<Output = Result<Response<SB>, SE>> + Send + 'static,
SB: Body<Data = SBD, Error = SBE> + Send + 'static,
SBD: Buf + Send + 'static,
SBE: Error + Send + Sync + 'static,
pub async fn serve_with_make_service_fn<M, MF, ME, S, SF, SE, SB, SBD, SBE>(
&'_ self,
_make_service: M
) -> Result<(), Error> where
S: Service<Request<Body>, Response = Response<SB>, Future = SF, Error = SE> + Send + 'static,
M: FnMut(&Connection) -> MF + Send + 'static,
SE: Error + Send + Sync + 'static,
SF: Future<Output = Result<Response<SB>, SE>> + Send + 'static,
SB: Body<Data = SBD, Error = SBE> + Send + 'static,
SBD: Buf + Send + 'static,
SBE: Error + Send + Sync + 'static,
MF: Future<Output = Result<S, ME>> + Send + 'static,
ME: Error + Send + Sync + 'static,
[src]
&'_ self,
_make_service: M
) -> Result<(), Error> where
S: Service<Request<Body>, Response = Response<SB>, Future = SF, Error = SE> + Send + 'static,
M: FnMut(&Connection) -> MF + Send + 'static,
SE: Error + Send + Sync + 'static,
SF: Future<Output = Result<Response<SB>, SE>> + Send + 'static,
SB: Body<Data = SBD, Error = SBE> + Send + 'static,
SBD: Buf + Send + 'static,
SBE: Error + Send + Sync + 'static,
MF: Future<Output = Result<S, ME>> + Send + 'static,
ME: Error + Send + Sync + 'static,
pub fn serve_protocol(&self) -> Result<Http<Exec>, Error>
[src]
pub fn serve_runtime(&self) -> Result<Runtime, Error>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Server
[src]
impl Send for Server
[src]
impl Sync for Server
[src]
impl Unpin for Server
[src]
impl UnwindSafe for Server
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,