pub struct Bt;Implementations§
Source§impl Bt
impl Bt
Sourcepub fn capture() -> Self
pub fn capture() -> Self
Capture a backtrace at the call site.
With the bt feature off this is a no-op that returns the unit-sized
Bt. With the feature on, capture is delegated to
std::backtrace::Backtrace::capture and is gated by the
RUST_BACKTRACE / RUST_LIB_BACKTRACE environment variables.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bt
impl RefUnwindSafe for Bt
impl Send for Bt
impl Sync for Bt
impl Unpin for Bt
impl UnsafeUnpin for Bt
impl UnwindSafe for Bt
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,
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