Type Alias chain_network::grpc::watch::server::Server

source ·
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>

source

pub fn new(inner: T) -> Self

source

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>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + Watch> Debug for WatchServer<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Watch> NamedService for WatchServer<T>

source§

const NAME: &'static str = "iohk.chain.watch.Watch"

The Service-Name as described here.
source§

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>>

Responses given by the service.
§

type Error = Never

Errors produced 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>>

The future response value.
source§

fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>

Returns Poll::Ready(Ok(())) when the service is able to process requests. Read more
source§

fn call(&mut self, req: Request<B>) -> Self::Future

Process the request and return the response asynchronously. Read more