Skip to main content

ObsEnvelopeView

Struct ObsEnvelopeView 

Source
pub struct ObsEnvelopeView<'a> {
Show 16 fields pub full_name: &'a str, pub schema_hash: u64, pub tier: EnumValue<Tier>, pub sev: EnumValue<Severity>, pub ts_ns: u64, pub trace_id: &'a str, pub span_id: &'a str, pub parent_span_id: &'a str, pub service: &'a str, pub instance: &'a str, pub version: &'a str, pub payload: &'a [u8], pub labels: MapView<'a, &'a str, &'a str>, pub sampling_reason: EnumValue<SamplingReason>, pub callsite_id: u64, pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}

Fields§

§full_name: &'a str

Field 1: full_name

§schema_hash: u64

Field 2: schema_hash

§tier: EnumValue<Tier>

Field 3: tier

§sev: EnumValue<Severity>

Field 4: sev

§ts_ns: u64

Field 5: ts_ns

§trace_id: &'a str

Field 6: trace_id

§span_id: &'a str

Field 7: span_id

§parent_span_id: &'a str

Field 8: parent_span_id

§service: &'a str

Field 9: service

§instance: &'a str

Field 10: instance

§version: &'a str

Field 11: version

§payload: &'a [u8]

Field 12: payload

§labels: MapView<'a, &'a str, &'a str>

Field 13: labels (map)

§sampling_reason: EnumValue<SamplingReason>

Field 14: sampling_reason

§callsite_id: u64

Field 15: callsite_id

§__buffa_unknown_fields: UnknownFieldsView<'a>

Trait Implementations§

Source§

impl<'a> Clone for ObsEnvelopeView<'a>

Source§

fn clone(&self) -> ObsEnvelopeView<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for ObsEnvelopeView<'a>

Source§

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

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

impl<'a> Default for ObsEnvelopeView<'a>

Source§

fn default() -> ObsEnvelopeView<'a>

Returns the “default value” for a type. Read more
Source§

impl<'v> DefaultViewInstance for ObsEnvelopeView<'v>

Source§

fn default_view_instance<'a>() -> &'a Self
where Self: 'a,

Return a reference to the single default view instance. Read more
Source§

impl<'a> MessageView<'a> for ObsEnvelopeView<'a>

Source§

type Owned = ObsEnvelope

The corresponding owned message type.
Source§

fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>

Decode a view from a buffer, borrowing string/bytes fields directly. Read more
Source§

fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>

Decode a view with a custom recursion depth limit. Read more
Source§

fn to_owned_message(&self) -> ObsEnvelope

Convert this view to the owned message type. Read more
Source§

fn to_owned_from_source(&self, __buffa_src: Option<&Bytes>) -> ObsEnvelope

Convert this view to the owned message type, optionally slicing bytes::Bytes-typed fields from source instead of copying. Read more
Source§

impl<'a> ViewEncode<'a> for ObsEnvelopeView<'a>

Source§

fn compute_size(&self, _cache: &mut SizeCache) -> u32

Compute the encoded byte size of this view, recording nested sub-message sizes in cache for write_to to consume. Read more
Source§

fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)

Write this view’s encoded bytes to a buffer, consuming nested-message sizes from cache (populated by a prior compute_size call on the same cache). Read more
Source§

fn encode(&self, buf: &mut impl BufMut)

Compute size, then write. Primary view-encode entry point.
Source§

fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)

Encode using a caller-supplied SizeCache, for reuse across many encodes in a hot loop. Clears the cache first.
Source§

fn encoded_len(&self) -> u32

Compute the encoded byte size of this view. Read more
Source§

fn encode_length_delimited(&self, buf: &mut impl BufMut)

Encode this view as a length-delimited byte sequence.
Source§

fn encode_to_vec(&self) -> Vec<u8>

Encode this view to a new Vec<u8>.
Source§

fn encode_to_bytes(&self) -> Bytes

Encode this view to a new bytes::Bytes.
Source§

impl ViewReborrow for ObsEnvelopeView<'static>

Source§

type Reborrowed<'b> = ObsEnvelopeView<'b>

The same view type with its lifetime shortened to 'b.
Source§

fn reborrow<'b>(this: &'b Self) -> &'b Self::Reborrowed<'b>

Coerce &'b Self (= &'b FooView<'static>) to &'b Self::Reborrowed<'b> (= &'b FooView<'b>). The canonical body is just this; the compiler accepts it via standard lifetime variance for covariant view types. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ObsEnvelopeView<'a>

§

impl<'a> RefUnwindSafe for ObsEnvelopeView<'a>

§

impl<'a> Send for ObsEnvelopeView<'a>

§

impl<'a> Sync for ObsEnvelopeView<'a>

§

impl<'a> Unpin for ObsEnvelopeView<'a>

§

impl<'a> UnsafeUnpin for ObsEnvelopeView<'a>

§

impl<'a> UnwindSafe for ObsEnvelopeView<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.