pub struct PropertySet<'a> { /* private fields */ }Expand description
A set of properties, backed by an arena-allocated transit object.
Borrows the parse arena, so it is valid only within a single parse_block
call; consumers must serialize/copy it out before the arena is dropped.
Implementations§
Source§impl<'a> PropertySet<'a>
impl<'a> PropertySet<'a>
pub fn new(obj: &'a Object<'a>) -> PropertySet<'a>
pub fn empty() -> PropertySet<'static>
Sourcepub fn for_each_property<Fun>(&self, fun: Fun) -> Result<(), Error>
pub fn for_each_property<Fun>(&self, fun: Fun) -> Result<(), Error>
Iterates over the string-valued properties in the set as (key, value) pairs.
Sourcepub fn object_ptr(&self) -> *const ()
pub fn object_ptr(&self) -> *const ()
Stable identity pointer to the underlying arena object.
Used by the dictionary builder for pointer-based deduplication: within a
single block, every event referencing the same property-set dependency
shares one arena Object, so identical sets compare equal by address.
The pointer is only ever compared, never dereferenced.
Trait Implementations§
Source§impl<'a> Clone for PropertySet<'a>
impl<'a> Clone for PropertySet<'a>
Source§fn clone(&self) -> PropertySet<'a>
fn clone(&self) -> PropertySet<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PropertySet<'a>
impl<'a> Debug for PropertySet<'a>
Source§impl<'a> From<&'a Object<'a>> for PropertySet<'a>
impl<'a> From<&'a Object<'a>> for PropertySet<'a>
Source§fn from(value: &'a Object<'a>) -> PropertySet<'a>
fn from(value: &'a Object<'a>) -> PropertySet<'a>
Converts to this type from the input type.
impl<'a> Copy for PropertySet<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropertySet<'a>
impl<'a> RefUnwindSafe for PropertySet<'a>
impl<'a> Send for PropertySet<'a>
impl<'a> Sync for PropertySet<'a>
impl<'a> Unpin for PropertySet<'a>
impl<'a> UnsafeUnpin for PropertySet<'a>
impl<'a> UnwindSafe for PropertySet<'a>
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].