#[non_exhaustive]pub struct AsyncBacktraceLayer {}Expand description
AsyncBacktraceLayer records efficient logical stack traces for asynchronous
service operations.
§Async Backtrace
async-backtrace lets developers inspect the stack traces of asynchronous functions.
Read more about async-backtrace
§Examples
let _ = Operator::new(services::Memory::default())?
.layer(AsyncBacktraceLayer::new());Implementations§
Source§impl AsyncBacktraceLayer
impl AsyncBacktraceLayer
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AsyncBacktraceLayer.
Trait Implementations§
Source§impl Clone for AsyncBacktraceLayer
impl Clone for AsyncBacktraceLayer
Source§fn clone(&self) -> AsyncBacktraceLayer
fn clone(&self) -> AsyncBacktraceLayer
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 Debug for AsyncBacktraceLayer
impl Debug for AsyncBacktraceLayer
Source§impl Default for AsyncBacktraceLayer
impl Default for AsyncBacktraceLayer
Source§fn default() -> AsyncBacktraceLayer
fn default() -> AsyncBacktraceLayer
Returns the “default value” for a type. Read more
Source§impl Layer for AsyncBacktraceLayer
impl Layer for AsyncBacktraceLayer
Source§fn apply_service(&self, inner: Servicer) -> Servicer
fn apply_service(&self, inner: Servicer) -> Servicer
Intercept the operation service stack. Read more
Source§fn apply_context(
&self,
srv: Arc<dyn ServiceDyn>,
inner: OperationContext,
) -> OperationContext
fn apply_context( &self, srv: Arc<dyn ServiceDyn>, inner: OperationContext, ) -> OperationContext
Intercept the operation context (HTTP transport and executor). Read more
Auto Trait Implementations§
impl Freeze for AsyncBacktraceLayer
impl RefUnwindSafe for AsyncBacktraceLayer
impl Send for AsyncBacktraceLayer
impl Sync for AsyncBacktraceLayer
impl Unpin for AsyncBacktraceLayer
impl UnsafeUnpin for AsyncBacktraceLayer
impl UnwindSafe for AsyncBacktraceLayer
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