Struct hyper_static_server::ConfigurationBuilder [−][src]
Implementations
impl ConfigurationBuilder
[src]
pub fn new() -> ConfigurationBuilder
[src]
pub fn build(self) -> Result<Configuration, Error>
[src]
impl ConfigurationBuilder
[src]
pub fn with_endpoint(self, _endpoint: Endpoint) -> ConfigurationBuilder
[src]
pub fn with_endpoint_address(
self,
_address: EndpointAddress
) -> ConfigurationBuilder
[src]
self,
_address: EndpointAddress
) -> ConfigurationBuilder
pub fn with_endpoint_socket_address(
self,
_address: impl Into<SocketAddr>
) -> ConfigurationBuilder
[src]
self,
_address: impl Into<SocketAddr>
) -> ConfigurationBuilder
pub fn with_endpoint_socket_address_parse(
self,
_address: &impl ToSocketAddrs
) -> Result<ConfigurationBuilder, Error>
[src]
self,
_address: &impl ToSocketAddrs
) -> Result<ConfigurationBuilder, Error>
pub fn with_endpoint_descriptor(self, _descriptor: u32) -> ConfigurationBuilder
[src]
pub fn with_endpoint_protocol(
self,
_protocol: EndpointProtocol
) -> ConfigurationBuilder
[src]
self,
_protocol: EndpointProtocol
) -> ConfigurationBuilder
pub fn with_endpoint_security(
self,
_security: EndpointSecurity
) -> ConfigurationBuilder
[src]
self,
_security: EndpointSecurity
) -> ConfigurationBuilder
impl ConfigurationBuilder
[src]
pub fn with_endpoint_certificate_rustls(
self,
_certificate: RustTlsCertificate
) -> ConfigurationBuilder
[src]
self,
_certificate: RustTlsCertificate
) -> ConfigurationBuilder
pub fn with_endpoint_certificate_rustls_from_pem_file(
self,
_path: impl AsRef<Path>
) -> Result<ConfigurationBuilder, Error>
[src]
self,
_path: impl AsRef<Path>
) -> Result<ConfigurationBuilder, Error>
pub fn with_endpoint_certificate_rustls_from_pem_data(
self,
_data: impl AsRef<[u8]>
) -> Result<ConfigurationBuilder, Error>
[src]
self,
_data: impl AsRef<[u8]>
) -> Result<ConfigurationBuilder, Error>
impl ConfigurationBuilder
[src]
pub fn with_endpoint_certificate_native(
self,
_certificate: NativeTlsCertificate
) -> ConfigurationBuilder
[src]
self,
_certificate: NativeTlsCertificate
) -> ConfigurationBuilder
pub fn with_endpoint_certificate_native_from_pkcs12_file(
self,
_path: impl AsRef<Path>,
_password: &str
) -> Result<ConfigurationBuilder, Error>
[src]
self,
_path: impl AsRef<Path>,
_password: &str
) -> Result<ConfigurationBuilder, Error>
pub fn with_endpoint_certificate_native_from_pkcs12_data(
self,
_data: impl AsRef<[u8]>,
_password: &str
) -> Result<ConfigurationBuilder, Error>
[src]
self,
_data: impl AsRef<[u8]>,
_password: &str
) -> Result<ConfigurationBuilder, Error>
impl ConfigurationBuilder
[src]
pub fn with_handler<H, F, RB>(self, _handler: H) -> ConfigurationBuilder where
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
H: Handler<Future = F, ResponseBody = RB, ResponseBodyError = <RB as Body>::Error> + Send + Sync + 'static,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
H: Handler<Future = F, ResponseBody = RB, ResponseBodyError = <RB as Body>::Error> + Send + Sync + 'static,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_handler_fn_sync<I, C, RB>(self, _handler: I) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> Result<Response<RB>, Error> + Send + Sync + 'static,
I: Into<HandlerFnSync<C, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
C: Fn(Request<Body>) -> Result<Response<RB>, Error> + Send + Sync + 'static,
I: Into<HandlerFnSync<C, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_handler_fn_async<I, C, F, RB>(
self,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
I: Into<HandlerFnAsync<C, F, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
self,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
I: Into<HandlerFnAsync<C, F, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_handler_dyn<H>(self, _handler: H) -> ConfigurationBuilder where
H: HandlerDyn,
[src]
H: HandlerDyn,
pub fn with_handler_arc<I>(self, _handler: I) -> ConfigurationBuilder where
I: Into<HandlerDynArc>,
[src]
I: Into<HandlerDynArc>,
impl ConfigurationBuilder
[src]
pub fn with_route<'a, P, H, F, RB>(
self,
_paths: P,
_handler: H
) -> ConfigurationBuilder where
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
P: Into<RoutePaths<'a>>,
H: Handler<Future = F, ResponseBody = RB, ResponseBodyError = <RB as Body>::Error> + Send + Sync + 'static,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
self,
_paths: P,
_handler: H
) -> ConfigurationBuilder where
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
P: Into<RoutePaths<'a>>,
H: Handler<Future = F, ResponseBody = RB, ResponseBodyError = <RB as Body>::Error> + Send + Sync + 'static,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_route_fn_sync<'a, P, I, C, RB>(
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> Result<Response<RB>, Error> + Send + Sync + 'static,
P: Into<RoutePaths<'a>>,
I: Into<HandlerFnSync<C, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> Result<Response<RB>, Error> + Send + Sync + 'static,
P: Into<RoutePaths<'a>>,
I: Into<HandlerFnSync<C, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_route_fn_async<'a, P, I, C, F, RB>(
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
P: Into<RoutePaths<'a>>,
I: Into<HandlerFnAsync<C, F, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
[src]
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
C: Fn(Request<Body>) -> F + Send + Sync + 'static,
F: Future<Output = Result<Response<RB>, Error>> + Send + 'static,
P: Into<RoutePaths<'a>>,
I: Into<HandlerFnAsync<C, F, RB>>,
RB: Body<Data = Bytes> + Send + 'static,
<RB as Body>::Error: Error,
<RB as Body>::Error: Send,
<RB as Body>::Error: Sync,
<RB as Body>::Error: 'static,
pub fn with_route_dyn<'a, P, H>(
self,
_paths: P,
_handler: H
) -> ConfigurationBuilder where
P: Into<RoutePaths<'a>>,
H: HandlerDyn,
[src]
self,
_paths: P,
_handler: H
) -> ConfigurationBuilder where
P: Into<RoutePaths<'a>>,
H: HandlerDyn,
pub fn with_route_arc<'a, P, I>(
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
P: Into<RoutePaths<'a>>,
I: Into<HandlerDynArc>,
[src]
self,
_paths: P,
_handler: I
) -> ConfigurationBuilder where
P: Into<RoutePaths<'a>>,
I: Into<HandlerDynArc>,
pub fn with_routes(self, _routes: impl Into<Routes>) -> ConfigurationBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ConfigurationBuilder
[src]
impl Send for ConfigurationBuilder
[src]
impl Sync for ConfigurationBuilder
[src]
impl Unpin for ConfigurationBuilder
[src]
impl !UnwindSafe for ConfigurationBuilder
[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, 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>,