pub struct SimplePayloadRawErased {
pub bytes: Arc<Vec<u8>>,
pub neuron_name: String,
pub trace: TraceContext,
pub payload_type_id: TypeId,
pub codec_type_id: TypeId,
}Expand description
A simple implementation of PayloadRawErased that doesn’t require type parameters. Useful for transport-level handling before the specific types are known.
Fields§
§bytes: Arc<Vec<u8>>§neuron_name: String§trace: TraceContext§payload_type_id: TypeId§codec_type_id: TypeIdImplementations§
Trait Implementations§
Source§impl Debug for SimplePayloadRawErased
impl Debug for SimplePayloadRawErased
Source§impl LogTrace for SimplePayloadRawErased
impl LogTrace for SimplePayloadRawErased
fn correlation_id(&self) -> Uuid
fn span_id(&self) -> u64
fn parent_id(&self) -> Option<u64>
fn neuron_name(&self) -> String
Source§fn trace_context(&self) -> TraceContext
fn trace_context(&self) -> TraceContext
Returns the full trace context.
Source§fn span_info(&self, name: &'static str) -> Span
fn span_info(&self, name: &'static str) -> Span
Returns a tracing span with the tracing fields attached at INFO level.
Source§fn span_debug(&self, name: &'static str) -> Span
fn span_debug(&self, name: &'static str) -> Span
Returns a tracing span with the tracing fields attached at DEBUG level.
Source§impl PayloadRawErased for SimplePayloadRawErased
impl PayloadRawErased for SimplePayloadRawErased
fn as_any(&self) -> &dyn Any
fn get_bytes(&self) -> Arc<Vec<u8>>
fn get_trace_context(&self) -> TraceContext
fn get_neuron_name(&self) -> String
fn get_erased_neuron( &self, ) -> Option<Arc<dyn NeuronErased + Send + Sync + 'static>>
fn payload_type_id(&self) -> TypeId
fn codec_type_id(&self) -> TypeId
fn clone_to_box(&self) -> Box<dyn PayloadRawErased + Send + Sync + 'static>
fn clone_to_arc(&self) -> Arc<dyn PayloadRawErased + Send + Sync + 'static>
fn get_correlation_id(&self) -> Uuid
fn get_span_id(&self) -> u64
fn get_parent_id(&self) -> Option<u64>
Auto Trait Implementations§
impl Freeze for SimplePayloadRawErased
impl RefUnwindSafe for SimplePayloadRawErased
impl Send for SimplePayloadRawErased
impl Sync for SimplePayloadRawErased
impl Unpin for SimplePayloadRawErased
impl UnwindSafe for SimplePayloadRawErased
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more