Struct TapIo

pub struct TapIo<L, F> { /* private fields */ }

Return type of ListenerExt::tap_io.

See that method for details.

Trait Implementations

impl<L, F> Debug for TapIo<L, F> where L: Listener + Debug,

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

impl<L, F> Listener for TapIo<L, F> where L: Listener, F: FnMut(&mut L::Io) + Send + 'static,

type Io = <L as Listener>::Io;
type Addr = <L as Listener>::Addr;
async fn accept(&mut self) -> (Self::Io, Self::Addr)
fn local_addr(&self) -> Result<Self::Addr>

Auto Trait Implementations

impl<L, F> Freeze for TapIo<L, F> where L: Freeze, F: Freeze,

impl<L, F> RefUnwindSafe for TapIo<L, F> where L: RefUnwindSafe, F: RefUnwindSafe,

impl<L, F> Send for TapIo<L, F> where L: Send, F: Send,

impl<L, F> Sync for TapIo<L, F> where L: Sync, F: Sync,

impl<L, F> Unpin for TapIo<L, F> where L: Unpin, F: Unpin,

impl<L, F> UnsafeUnpin for TapIo<L, F> where L: UnsafeUnpin, F: UnsafeUnpin,

impl<L, F> UnwindSafe for TapIo<L, F> where L: UnwindSafe, F: UnwindSafe,

Blanket Implementations

impl<L> ListenerExt for TapIo<L, F> where L: Listener,

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for TapIo<L, F> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for TapIo<L, F> where ST: ?Sized, DT: ?Sized,

impl<T> Any for TapIo<L, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for TapIo<L, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for TapIo<L, F> where T: ?Sized,

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

impl<T> From<T> for TapIo<L, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for TapIo<L, F>

impl<T> Read<Exclusive, BecauseExclusive> for TapIo<L, F> where T: ?Sized,

impl<T> Same for TapIo<L, F>

type Output = T;

impl<T> WithSubscriber for TapIo<L, F>

impl<T, U> Into<U> for TapIo<L, F> where U: From<T>,

fn into(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<U> for TapIo<L, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for TapIo<L, F> where U: TryFrom<T>,

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

impl<V, T> VZip<V> for TapIo<L, F> where V: MultiLane<T>,

fn vzip(self) -> V