Struct ConnectInfo

struct ConnectInfo<T>(620)

Extractor for getting connection information produced by a Connected.

Note this extractor requires you to use Router::into_make_service_with_connect_info to run your app otherwise it will fail at runtime.

See Router::into_make_service_with_connect_info for more details.

Implementations

impl<P, T> Receiver for ConnectInfo<T>

impl<R> Rng for ConnectInfo<T>

impl<R> TryCryptoRng for ConnectInfo<T>

impl<R> TryRngCore for ConnectInfo<T>

fn try_next_u32(self: &mut Self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u64(self: &mut Self) -> Result<u64, <R as TryRngCore>::Error>
fn try_fill_bytes(self: &mut Self, dst: &mut [u8]) -> Result<(), <R as TryRngCore>::Error>

impl<S, T> FromRequest for ConnectInfo<T>

fn from_request(req: Request<Body>, state: &S) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>

impl<S, T> FromRequestParts for ConnectInfo<T>

async fn from_request_parts(parts: &mut Parts, state: &S) -> Result<Self, <Self as >::Rejection>

impl<T> Any for ConnectInfo<T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ConnectInfo<T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ConnectInfo<T>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for ConnectInfo<T>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> CryptoRng for ConnectInfo<T>

impl<T> Deref for ConnectInfo<T>

fn deref(self: &Self) -> &<Self as >::Target

impl<T> DerefMut for ConnectInfo<T>

fn deref_mut(self: &mut Self) -> &mut <Self as >::Target

impl<T> Freeze for ConnectInfo<T>

impl<T> From for ConnectInfo<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for ConnectInfo<T>

fn from_ref(input: &T) -> T

impl<T> Instrument for ConnectInfo<T>

impl<T> RefUnwindSafe for ConnectInfo<T>

impl<T> RngCore for ConnectInfo<T>

fn next_u32(self: &mut Self) -> u32
fn next_u64(self: &mut Self) -> u64
fn fill_bytes(self: &mut Self, dst: &mut [u8])

impl<T> Same for ConnectInfo<T>

impl<T> Send for ConnectInfo<T>

impl<T> Sync for ConnectInfo<T>

impl<T> ToOwned for ConnectInfo<T>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> Unpin for ConnectInfo<T>

impl<T> UnwindSafe for ConnectInfo<T>

impl<T> WithSubscriber for ConnectInfo<T>

impl<T, U> Into for ConnectInfo<T>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ConnectInfo<T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ConnectInfo<T>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: $crate::clone::Clone> Clone for ConnectInfo<T>

fn clone(self: &Self) -> ConnectInfo<T>

impl<T: $crate::fmt::Debug> Debug for ConnectInfo<T>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<T: $crate::marker::Copy> Copy for ConnectInfo<T>

impl<V, T> VZip for ConnectInfo<T>

fn vzip(self: Self) -> V