pub struct Path<'a>(/* private fields */);
Expand description
Represents the ProcessingState
as a path.
This is a view of a ProcessingState
which treats the stack of states as a path.
Implementations§
Source§impl Path<'_>
impl Path<'_>
Sourcepub fn depth(&self) -> usize
pub fn depth(&self) -> usize
Return the depth (~ indentation level) of the currently processed value.
Sourcepub fn attrs(&self) -> &FieldAttrs
pub fn attrs(&self) -> &FieldAttrs
Returns the field attributes of the current path item.
Sourcepub fn iter(&self) -> ProcessingStateIter<'_> ⓘ
pub fn iter(&self) -> ProcessingStateIter<'_> ⓘ
Iterates through the states in this path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Path<'a>
impl<'a> RefUnwindSafe for Path<'a>
impl<'a> Send for Path<'a>
impl<'a> Sync for Path<'a>
impl<'a> Unpin for Path<'a>
impl<'a> UnwindSafe for Path<'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
§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> 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