pub struct HelloHyperServerAdaptor { /* private fields */ }Expand description
Hello adaptor for the Hyper server processor. Use to respond to a request with a simple hello message
Trait Implementations§
Source§impl Adaptor for HelloHyperServerAdaptor
impl Adaptor for HelloHyperServerAdaptor
Source§impl Clone for HelloHyperServerAdaptor
impl Clone for HelloHyperServerAdaptor
Source§fn clone(&self) -> HelloHyperServerAdaptor
fn clone(&self) -> HelloHyperServerAdaptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HelloHyperServerAdaptor
impl Debug for HelloHyperServerAdaptor
Source§impl<M> HyperServerAdaptor<M> for HelloHyperServerAdaptor
impl<M> HyperServerAdaptor<M> for HelloHyperServerAdaptor
Source§fn new(
_proc: &HyperServerProc<M>,
prosa_name: &str,
) -> Result<Self, Box<dyn ProcError + Send + Sync>>
fn new( _proc: &HyperServerProc<M>, prosa_name: &str, ) -> Result<Self, Box<dyn ProcError + Send + Sync>>
Create a new adaptor
Source§async fn process_http_request(&self, _req: Request<Incoming>) -> HyperResp<M>
async fn process_http_request(&self, _req: Request<Incoming>) -> HyperResp<M>
Method to process input HTTP requests. Received by the ProSA through Hyper
Source§fn process_srv_response(&self, _resp: M) -> Response<BoxBody<Bytes, Infallible>>
fn process_srv_response(&self, _resp: M) -> Response<BoxBody<Bytes, Infallible>>
Method to process input response to respond with an Hyper HTTP response.
Source§const SERVER_HEADER: &'static str = "ProSA-Hyper/0.2.0 (Unix)"
const SERVER_HEADER: &'static str = "ProSA-Hyper/0.2.0 (Unix)"
Server header value send by the server
Auto Trait Implementations§
impl Freeze for HelloHyperServerAdaptor
impl RefUnwindSafe for HelloHyperServerAdaptor
impl Send for HelloHyperServerAdaptor
impl Sync for HelloHyperServerAdaptor
impl Unpin for HelloHyperServerAdaptor
impl UnwindSafe for HelloHyperServerAdaptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request