Struct futures::stream::Skip [] [src]

#[must_use = "streams do nothing unless polled"]
pub struct Skip<S> { /* fields omitted */ }

A stream combinator which skips a number of elements before continuing.

This structure is produced by the Stream::skip method.

Methods

impl<S> Skip<S>
[src]

Important traits for &'a mut I
[src]

Acquires a reference to the underlying stream that this combinator is pulling from.

Important traits for &'a mut I
[src]

Acquires a mutable reference to the underlying stream that this combinator is pulling from.

Note that care must be taken to avoid tampering with the state of the stream which may otherwise confuse this combinator.

[src]

Consumes this combinator, returning the underlying stream.

Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.

Trait Implementations

impl<S> Sink for Skip<S> where
    S: Sink
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

[src]

Attempts to prepare the Sink to receive a value. Read more

[src]

Begin the process of sending a value to the sink. Each call to this function must be proceeded by a successful call to poll_ready which returned Ok(Async::Ready(())). Read more

[src]

Flush any remaining output from this sink. Read more

[src]

Flush any remaining output and close this sink, if necessary. Read more

impl<S> Debug for Skip<S> where
    S: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<S> Stream for Skip<S> where
    S: Stream
[src]

Values yielded by the stream.

Errors yielded by the stream.

[src]

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Auto Trait Implementations

impl<S> Send for Skip<S> where
    S: Send

impl<S> Sync for Skip<S> where
    S: Sync