Function nebula_fbthrift_raftex::server::make_RaftexService_server
source · pub fn make_RaftexService_server<F, H, R, RS>(
proto: ProtocolID,
handler: H
) -> Result<Box<dyn ThriftService<F, RequestContext = R, ReplyState = RS, Handler = H> + Send + 'static, Global>, ApplicationException>where
F: Framing + Send + Sync + 'static,
H: RaftexService,
R: RequestContext<Name = CStr> + Send + Sync + 'static,
<R as RequestContext>::ContextStack: ContextStack<Name = <R as RequestContext>::Name, Buffer = <F as Framing>::DecBuf> + Send + Sync + 'static,
RS: ReplyState<F, RequestContext = R> + Send + Sync + 'static,
Expand description
Construct a new instance of a RaftexService service.
This is called when a new instance of a Thrift service Processor is needed for a particular Thrift protocol.