Struct tokio::net::unix::Incoming   [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Incoming<'a> { /* fields omitted */ }
Expand description
Stream of listeners
Implementations
impl Incoming<'_>[src]
impl Incoming<'_>[src]pub fn poll_accept(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>
) -> Poll<Result<UnixStream>>[src]
pub fn poll_accept(
    self: Pin<&mut Self>, 
    cx: &mut Context<'_>
) -> Poll<Result<UnixStream>>[src]Attempts to poll UnixStream by polling inner UnixListener to accept
connection.
If UnixListener isn’t ready yet, Poll::Pending is returned and
current task will be notified by a waker.  Otherwise Poll::Ready with
Result containing UnixStream will be returned.
Trait Implementations
impl Stream for Incoming<'_>[src]
impl Stream for Incoming<'_>[src]type Item = Result<UnixStream>
type Item = Result<UnixStream>Values yielded by the stream.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Incoming<'a>
impl<'a> Send for Incoming<'a>
impl<'a> Sync for Incoming<'a>
impl<'a> Unpin for Incoming<'a>
impl<'a> !UnwindSafe for Incoming<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<St> StreamExt for St where
    St: Stream + ?Sized, [src]
impl<St> StreamExt for St where
    St: Stream + ?Sized, [src]fn next(&mut self) -> Next<'_, Self> where
    Self: Unpin, [src]
fn next(&mut self) -> Next<'_, Self> where
    Self: Unpin, [src]Consumes and returns the next value in the stream or None if the
stream is finished. Read more
fn try_next<T, E>(&mut self) -> TryNext<'_, Self> where
    Self: Stream<Item = Result<T, E>> + Unpin, [src]
fn try_next<T, E>(&mut self) -> TryNext<'_, Self> where
    Self: Stream<Item = Result<T, E>> + Unpin, [src]Consumes and returns the next item in the stream. If an error is encountered before the next item, the error is returned instead. Read more
fn map<T, F>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Item) -> T,
    Self: Sized, [src]
fn map<T, F>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Item) -> T,
    Self: Sized, [src]Maps this stream’s items to a different type, returning a new stream of the resulting type. Read more
fn merge<U>(self, other: U) -> Merge<Self, U> where
    U: Stream<Item = Self::Item>,
    Self: Sized, [src]
fn merge<U>(self, other: U) -> Merge<Self, U> where
    U: Stream<Item = Self::Item>,
    Self: Sized, [src]Combine two streams into one by interleaving the output of both as it is produced. Read more
fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> bool,
    Self: Sized, [src]
fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> bool,
    Self: Sized, [src]Filters the values produced by this stream according to the provided predicate. Read more
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
    F: FnMut(Self::Item) -> Option<T>,
    Self: Sized, [src]
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
    F: FnMut(Self::Item) -> Option<T>,
    Self: Sized, [src]Filters the values produced by this stream while simultaneously mapping them to a different type according to the provided closure. Read more
fn fuse(self) -> Fuse<Self> where
    Self: Sized, [src]
fn fuse(self) -> Fuse<Self> where
    Self: Sized, [src]Creates a stream which ends after the first None. Read more
fn take(self, n: usize) -> Take<Self> where
    Self: Sized, [src]
fn take(self, n: usize) -> Take<Self> where
    Self: Sized, [src]Creates a new stream of at most n items of the underlying stream. Read more
fn take_while<F>(self, f: F) -> TakeWhile<Self, F> where
    F: FnMut(&Self::Item) -> bool,
    Self: Sized, [src]
fn take_while<F>(self, f: F) -> TakeWhile<Self, F> where
    F: FnMut(&Self::Item) -> bool,
    Self: Sized, [src]Take elements from this stream while the provided predicate
resolves to true. Read more
fn all<F>(&mut self, f: F) -> AllFuture<'_, Self, F> where
    Self: Unpin,
    F: FnMut(Self::Item) -> bool, [src]
fn all<F>(&mut self, f: F) -> AllFuture<'_, Self, F> where
    Self: Unpin,
    F: FnMut(Self::Item) -> bool, [src]Tests if every element of the stream matches a predicate. Read more
fn any<F>(&mut self, f: F) -> AnyFuture<'_, Self, F> where
    Self: Unpin,
    F: FnMut(Self::Item) -> bool, [src]
fn any<F>(&mut self, f: F) -> AnyFuture<'_, Self, F> where
    Self: Unpin,
    F: FnMut(Self::Item) -> bool, [src]Tests if any element of the stream matches a predicate. Read more
fn chain<U>(self, other: U) -> Chain<Self, U> where
    U: Stream<Item = Self::Item>,
    Self: Sized, [src]
fn chain<U>(self, other: U) -> Chain<Self, U> where
    U: Stream<Item = Self::Item>,
    Self: Sized, [src]Combine two streams into one by first returning all values from the first stream then all values from the second stream. Read more
fn fold<B, F>(self, init: B, f: F) -> FoldFuture<Self, B, F> where
    Self: Sized,
    F: FnMut(B, Self::Item) -> B, [src]
fn fold<B, F>(self, init: B, f: F) -> FoldFuture<Self, B, F> where
    Self: Sized,
    F: FnMut(B, Self::Item) -> B, [src]A combinator that applies a function to every element in a stream producing a single, final value. Read more