pub struct SniPrereadCore { /* private fields */ }Expand description
The pure preread core. Deliberately near-stateless: the shell owns the
growing byte accumulator and re-feeds the FULL window on every
Input::Bytes; this struct only remembers whether a terminal verdict
has already been latched (decided) and when the preread deadline was
armed (deadline).
Implementations§
Source§impl SniPrereadCore
impl SniPrereadCore
Sourcepub fn handle_input(
&mut self,
cfg: &PrereadConfig<'_>,
input: Input<'_>,
) -> Output
pub fn handle_input( &mut self, cfg: &PrereadConfig<'_>, input: Input<'_>, ) -> Output
Feed one input. Pure: now (inside Input) and cfg are
injected, never read from ambient state.
Trait Implementations§
Source§impl Debug for SniPrereadCore
impl Debug for SniPrereadCore
Source§impl Default for SniPrereadCore
impl Default for SniPrereadCore
Source§fn default() -> SniPrereadCore
fn default() -> SniPrereadCore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SniPrereadCore
impl RefUnwindSafe for SniPrereadCore
impl Send for SniPrereadCore
impl Sync for SniPrereadCore
impl Unpin for SniPrereadCore
impl UnsafeUnpin for SniPrereadCore
impl UnwindSafe for SniPrereadCore
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