pub struct HyperProcMsg<M>{ /* private fields */ }Expand description
Hyper processor
Implementations§
Source§impl<M> HyperProcMsg<M>
impl<M> HyperProcMsg<M>
Sourcepub fn new(
service: String,
data: M,
response_queue: Sender<InternalMsg<M>>,
) -> HyperProcMsg<M>
pub fn new( service: String, data: M, response_queue: Sender<InternalMsg<M>>, ) -> HyperProcMsg<M>
Create a new Hyper processor message
Trait Implementations§
Source§impl<M> Debug for HyperProcMsg<M>
impl<M> Debug for HyperProcMsg<M>
Source§impl<M> Msg<M> for HyperProcMsg<M>
impl<M> Msg<M> for HyperProcMsg<M>
Source§fn get_service(&self) -> &String
fn get_service(&self) -> &String
Getter of the service name
Source§fn get_span_mut(&mut self) -> &mut Span
fn get_span_mut(&mut self) -> &mut Span
Getter of the mutable span of the message (use to add informations for metrics)
Source§fn enter_span(&self) -> Entered<'_>
fn enter_span(&self) -> Entered<'_>
Enter the span and push metadata in it
Source§fn get_data_mut(&mut self) -> &mut M
fn get_data_mut(&mut self) -> &mut M
Getter of the mutable message content
Auto Trait Implementations§
impl<M> Freeze for HyperProcMsg<M>where
M: Freeze,
impl<M> !RefUnwindSafe for HyperProcMsg<M>
impl<M> Send for HyperProcMsg<M>
impl<M> Sync for HyperProcMsg<M>
impl<M> Unpin for HyperProcMsg<M>where
M: Unpin,
impl<M> !UnwindSafe for HyperProcMsg<M>
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> 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