pub struct AtCompletion { /* private fields */ }Expand description
Incremental form of at_final_line_complete / at_intermediate_line_complete:
feed the reply chunk by chunk; each line is judged once, so a long reply costs
time linear in its size. After each push the answer is the one the
one-shot check gives for all bytes pushed so far.
Implementations§
Source§impl AtCompletion
impl AtCompletion
Sourcepub fn new(intermediate: bool, format: AtResultFormat) -> Self
pub fn new(intermediate: bool, format: AtResultFormat) -> Self
intermediate: also complete on CONNECT / 1 / the > prompt.
Sourcepub fn push(&mut self, chunk: &[u8]) -> Option<ExchangeMatch>
pub fn push(&mut self, chunk: &[u8]) -> Option<ExchangeMatch>
Feed the next bytes; returns the completion state for everything fed so far.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AtCompletion
impl Freeze for AtCompletion
impl RefUnwindSafe for AtCompletion
impl Send for AtCompletion
impl Sync for AtCompletion
impl Unpin for AtCompletion
impl UnsafeUnpin for AtCompletion
impl UnwindSafe for AtCompletion
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