pub struct EncodedSpanArguments { /* private fields */ }
Expand description
The attributes of a Span pre-encoded for usage in child events.
Implementations§
source§impl EncodedSpanArguments
impl EncodedSpanArguments
sourcepub fn new(attrs: &Attributes<'_>) -> Result<Self, EncodingError>
pub fn new(attrs: &Attributes<'_>) -> Result<Self, EncodingError>
Encodes the given span attributes.
sourcepub fn from_record(record: &Record<'_>) -> Result<Self, EncodingError>
pub fn from_record(record: &Record<'_>) -> Result<Self, EncodingError>
Encodes the given span attributes, replacing existing ones.
Auto Trait Implementations§
impl Freeze for EncodedSpanArguments
impl RefUnwindSafe for EncodedSpanArguments
impl Send for EncodedSpanArguments
impl Sync for EncodedSpanArguments
impl Unpin for EncodedSpanArguments
impl UnwindSafe for EncodedSpanArguments
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