Struct IntoIncoming
pub struct IntoIncoming { pub(in ::net::tcp) listener: TcpListener }
An iterator that infinitely accepts connections on a TcpListener.
This struct is created by the TcpListener::into_incoming method.
See its documentation for more.
Fields
listener: TcpListener
Trait Implementations
impl Debug for IntoIncoming
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl FusedIterator for IntoIncoming
impl Iterator for IntoIncoming
type Item = Result<TcpStream, Error>;fn next(&mut self) -> Option<Result<TcpStream>>
Auto Trait Implementations
impl Freeze for IntoIncoming
impl RefUnwindSafe for IntoIncoming
impl Send for IntoIncoming
impl Sync for IntoIncoming
impl Unpin for IntoIncoming
impl UnsafeUnpin for IntoIncoming
impl UnwindSafe for IntoIncoming
Blanket Implementations
impl<I> IntoIterator for IntoIncoming
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for IntoIncoming
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoIncoming
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoIncoming
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IntoIncoming
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for IntoIncoming
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for IntoIncoming
impl<T, U> Into<U> for IntoIncoming
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 IntoIncoming
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for IntoIncoming
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>