pub type Server<T> = WatchServer<WatchService<T>>;
Aliased Type§
struct Server<T> {
inner: _Inner<WatchService<T>>,
accept_compression_encodings: (),
send_compression_encodings: (),
}
Fields§
§inner: _Inner<WatchService<T>>
§accept_compression_encodings: ()
§send_compression_encodings: ()
Implementations§
source§impl<T: Watch> WatchServer<T>
impl<T: Watch> WatchServer<T>
pub fn new(inner: T) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F ) -> InterceptedService<Self, F>where F: Interceptor,
Trait Implementations§
source§impl<T: Watch> Clone for WatchServer<T>
impl<T: Watch> Clone for WatchServer<T>
source§impl<T: Watch> NamedService for WatchServer<T>
impl<T: Watch> NamedService for WatchServer<T>
source§impl<T, B> Service<Request<B>> for WatchServer<T>where
T: Watch,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
impl<T, B> Service<Request<B>> for WatchServer<T>where T: Watch, B: Body + Send + 'static, B::Error: Into<StdError> + Send + 'static,
§type Response = Response<UnsyncBoxBody<Bytes, Status>>
type Response = Response<UnsyncBoxBody<Bytes, Status>>
Responses given by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<WatchServer<T> as Service<Request<B>>>::Response, <WatchServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<WatchServer<T> as Service<Request<B>>>::Response, <WatchServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
The future response value.