[][src]Trait combine::stream::ResetStream

pub trait ResetStream: StreamOnce {
    type Checkpoint: Clone;
    fn checkpoint(&self) -> Self::Checkpoint;
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>; }

A StreamOnce which can create checkpoints which the stream can be reset to

Associated Types

Loading content...

Required methods

fn checkpoint(&self) -> Self::Checkpoint

Creates a Checkpoint at the current position which can be used to reset the stream later to the current position

fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>

Attempts to reset the stream to an earlier position.

Loading content...

Implementations on Foreign Types

impl<'a> ResetStream for &'a str where
    Self: StreamOnce
[src]

type Checkpoint = Self

impl<'a, T> ResetStream for &'a [T] where
    Self: StreamOnce
[src]

type Checkpoint = Self

impl<'a, I: ?Sized> ResetStream for &'a mut I where
    I: ResetStream
[src]

type Checkpoint = I::Checkpoint

Loading content...

Implementors

impl<'a, T> ResetStream for SliceStream<'a, T> where
    Self: StreamOnce
[src]

type Checkpoint = Self

impl<Input> ResetStream for combine::stream::buffered::Stream<Input> where
    Input: Positioned
[src]

type Checkpoint = usize

impl<Input, X, S> ResetStream for combine::stream::position::Stream<Input, X> where
    Input: ResetStream,
    X: Positioner<Input::Token>,
    S: StreamError<Input::Token, Input::Range>,
    Input::Error: ParseError<Input::Token, Input::Range, X::Position, StreamError = S>,
    Input::Error: ParseError<Input::Token, Input::Range, Input::Position, StreamError = S>, 
[src]

type Checkpoint = Stream<Input::Checkpoint, X::Checkpoint>

impl<S> ResetStream for combine::stream::easy::Stream<S> where
    S: ResetStream + Positioned,
    S::Token: PartialEq,
    S::Range: PartialEq
[src]

type Checkpoint = S::Checkpoint

impl<S> ResetStream for CompleteStream<S> where
    S: ResetStream
[src]

type Checkpoint = S::Checkpoint

impl<S> ResetStream for MaybePartialStream<S> where
    S: ResetStream
[src]

type Checkpoint = S::Checkpoint

impl<S> ResetStream for PartialStream<S> where
    S: ResetStream
[src]

type Checkpoint = S::Checkpoint

impl<S, U> ResetStream for combine::stream::state::Stream<S, U> where
    S: ResetStream
[src]

type Checkpoint = S::Checkpoint

impl<T: Clone> ResetStream for IteratorStream<T> where
    Self: StreamOnce
[src]

type Checkpoint = Self

Loading content...