pub struct DemoParser<'a, A: MessageHandler> { /* private fields */ }
Implementations§
Source§impl<'a> DemoParser<'a, Analyser>
impl<'a> DemoParser<'a, Analyser>
Source§impl<'a, A: MessageHandler> DemoParser<'a, A>
impl<'a, A: MessageHandler> DemoParser<'a, A>
pub fn new_with_analyser(stream: Stream<'a>, analyser: A) -> Self
pub fn new_all_with_analyser(stream: Stream<'a>, analyser: A) -> Self
pub fn parse(self) -> Result<(Header, A::Output)>
Sourcepub fn ticker(self) -> Result<(Header, DemoTicker<'a, A>)>
pub fn ticker(self) -> Result<(Header, DemoTicker<'a, A>)>
A Ticker provides a way to step trough the demo packet by packet while allowing to see the intermediate states
Auto Trait Implementations§
impl<'a, A> !Freeze for DemoParser<'a, A>
impl<'a, A> !RefUnwindSafe for DemoParser<'a, A>
impl<'a, A> !Send for DemoParser<'a, A>
impl<'a, A> !Sync for DemoParser<'a, A>
impl<'a, A> Unpin for DemoParser<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for DemoParser<'a, A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more