Type Alias chain_network::grpc::server::Server
source · pub type Server<T> = NodeServer<NodeService<T>>;
Aliased Type§
struct Server<T> {
inner: _Inner<NodeService<T>>,
accept_compression_encodings: (),
send_compression_encodings: (),
}
Fields§
§inner: _Inner<NodeService<T>>
§accept_compression_encodings: ()
§send_compression_encodings: ()
Implementations§
source§impl<T: Node> NodeServer<T>
impl<T: Node> NodeServer<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: Node> Clone for NodeServer<T>
impl<T: Node> Clone for NodeServer<T>
source§impl<T: Node> NamedService for NodeServer<T>
impl<T: Node> NamedService for NodeServer<T>
source§impl<T, B> Service<Request<B>> for NodeServer<T>where
T: Node,
B: Body + Send + 'static,
B::Error: Into<StdError> + Send + 'static,
impl<T, B> Service<Request<B>> for NodeServer<T>where T: Node, 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<<NodeServer<T> as Service<Request<B>>>::Response, <NodeServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<NodeServer<T> as Service<Request<B>>>::Response, <NodeServer<T> as Service<Request<B>>>::Error>> + Send, Global>>
The future response value.