Struct CaptureConnection
struct CaptureConnection { ... }
CaptureConnection allows callers to capture Connected information
To capture a connection for a request, use capture_connection.
Implementations
impl CaptureConnection
fn connection_metadata(self: &Self) -> impl Deref<Target = Option<Connected>> + '_Retrieve the connection metadata, if available
async fn wait_for_connection_metadata(self: &mut Self) -> impl Deref<Target = Option<Connected>> + '_Wait for the connection to be established
If a connection was established, this will always return
Some(...). If the request never successfully connected (e.g. DNS resolution failure), this method will never return.
impl Clone for CaptureConnection
fn clone(self: &Self) -> CaptureConnection
impl Debug for CaptureConnection
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Freeze for CaptureConnection
impl RefUnwindSafe for CaptureConnection
impl Send for CaptureConnection
impl Sync for CaptureConnection
impl Unpin for CaptureConnection
impl UnsafeUnpin for CaptureConnection
impl UnwindSafe for CaptureConnection
impl<T> Any for CaptureConnection
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for CaptureConnection
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for CaptureConnection
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for CaptureConnection
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for CaptureConnection
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for CaptureConnection
impl<T> ToOwned for CaptureConnection
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> WithSubscriber for CaptureConnection
impl<T, U> Into for CaptureConnection
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for CaptureConnection
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for CaptureConnection
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>