pub struct SpanEventBuilder<'w, S: ScratchBuffer> { /* private fields */ }Implementations§
Source§impl<'w, S: ScratchBuffer> SpanEventBuilder<'w, S>
impl<'w, S: ScratchBuffer> SpanEventBuilder<'w, S>
pub fn new(writer: &'w mut ScratchWriter<S>) -> Self
pub fn time(&mut self, value: u64) -> Result<&mut Self>
pub fn name_ref(&mut self, value: u32) -> Result<&mut Self>
pub fn attributes(&mut self) -> MessageMapBuilder<'_, S, Varint<u32>, AnyValue>
pub fn finish<W: Writer>(self, output: &mut W) -> Result<()>
pub fn finish_length_delimited<W: Writer>(self, output: &mut W) -> Result<()>
Auto Trait Implementations§
impl<'w, S> Freeze for SpanEventBuilder<'w, S>
impl<'w, S> RefUnwindSafe for SpanEventBuilder<'w, S>where
S: RefUnwindSafe,
impl<'w, S> Send for SpanEventBuilder<'w, S>where
S: Send,
impl<'w, S> Sync for SpanEventBuilder<'w, S>where
S: Sync,
impl<'w, S> Unpin for SpanEventBuilder<'w, S>
impl<'w, S> !UnwindSafe for SpanEventBuilder<'w, S>
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> 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