Trait combine::stream::ResetStream [−][src]
pub trait ResetStream: StreamOnce {
type Checkpoint: Clone;
fn checkpoint(&self) -> Self::Checkpoint;
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>;
}Expand description
A StreamOnce which can create checkpoints which the stream can be reset to
Associated Types
type Checkpoint: Clone
Required methods
fn checkpoint(&self) -> Self::Checkpoint
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
Implementations on Foreign Types
type Checkpoint = Self
type Checkpoint = Self
type Checkpoint = I::Checkpoint
Implementors
impl<Input> ResetStream for combine::stream::buffered::Stream<Input> where
Input: Positioned,
This is supported on crate feature
std only.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>,
impl<S> ResetStream for combine::stream::easy::Stream<S> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
This is supported on crate feature
std only.