Struct IncomingStream
pub struct IncomingStream<'a, L>
where
L: Listener, { /* private fields */ }
An incoming stream.
Used with serve and IntoMakeServiceWithConnectInfo.
Implementations
impl<L> IncomingStream<'_, L>
where
L: Listener,
fn io(&self) -> &L::IoGet a reference to the inner IO type.
fn remote_addr(&self) -> &L::AddrReturns the remote address that this stream is bound to.
Trait Implementations
impl<'a, L> Debug for IncomingStream<'a, L>
where
L: Listener + Debug,
L::Io: Debug,
L::Addr: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a, L> Freeze for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: Freeze,
<L as Listener>::Addr: Freeze,
impl<'a, L> RefUnwindSafe for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: RefUnwindSafe,
<L as Listener>::Addr: RefUnwindSafe,
impl<'a, L> Send for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: Send,
<L as Listener>::Addr: Send,
impl<'a, L> Sync for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: Sync,
<L as Listener>::Addr: Sync,
impl<'a, L> Unpin for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: Unpin,
<L as Listener>::Addr: Unpin,
impl<'a, L> UnsafeUnpin for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: UnsafeUnpin,
<L as Listener>::Addr: UnsafeUnpin,
impl<'a, L> UnwindSafe for IncomingStream<'a, L>
where
&'a TokioIo<<L as Listener>::Io>: UnwindSafe,
<L as Listener>::Addr: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for IncomingStream<'a, L>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for IncomingStream<'a, L>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for IncomingStream<'a, L>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IncomingStream<'a, L>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IncomingStream<'a, L>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IncomingStream<'a, L>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for IncomingStream<'a, L>
impl<T> Read<Exclusive, BecauseExclusive> for IncomingStream<'a, L>
where
T: ?Sized,
impl<T> Same for IncomingStream<'a, L>
type Output = T;
impl<T> WithSubscriber for IncomingStream<'a, L>
impl<T, U> Into<U> for IncomingStream<'a, L>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IncomingStream<'a, L>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IncomingStream<'a, L>
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 IncomingStream<'a, L>
where
V: MultiLane<T>,
fn vzip(self) -> V