#[non_exhaustive]pub enum GapResponse {
Continue,
StopSide,
Stop,
}Available on crate feature
session only.Expand description
Answer to SessionParser::on_gap.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Keep feeding this parser; bytes after the gap follow.
StopSide
Default. Stop feeding the side with the gap; the other
side keeps being parsed. Reported as a parser side stop
(SessionEvent::ParserSideStopped /
crate::driver::Event::ParserSideStopped). When both sides
are stopped the parser is closed. New in 0.25.0.
Stop
Close the parser for this flow (EndReason::StreamGap).
Trait Implementations§
Source§impl Clone for GapResponse
impl Clone for GapResponse
impl Copy for GapResponse
Source§impl Debug for GapResponse
impl Debug for GapResponse
Source§impl Default for GapResponse
impl Default for GapResponse
impl Eq for GapResponse
Source§impl PartialEq for GapResponse
impl PartialEq for GapResponse
impl StructuralPartialEq for GapResponse
Auto Trait Implementations§
impl Freeze for GapResponse
impl RefUnwindSafe for GapResponse
impl Send for GapResponse
impl Sync for GapResponse
impl Unpin for GapResponse
impl UnsafeUnpin for GapResponse
impl UnwindSafe for GapResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.