pub struct InputDelivery<Pipe> { /* private fields */ }Expand description
Independent full-write accounting for one actual solver input pipe. Its closure check binds delivered bytes to the parser session terminal key.
Implementations§
Source§impl<Pipe: InputPipe> InputDelivery<Pipe>
impl<Pipe: InputPipe> InputDelivery<Pipe>
Sourcepub fn write(&mut self, bytes: &[u8]) -> bool
pub fn write(&mut self, bytes: &[u8]) -> bool
Calls the owned pipe’s full write and flush before acknowledging bytes.
Sourcepub fn matches(&self, expected: QueryKey, complete: bool) -> bool
pub fn matches(&self, expected: QueryKey, complete: bool) -> bool
Checks acknowledged input against this session’s parser terminal key.
Auto Trait Implementations§
impl<Pipe> Forget for InputDelivery<Pipe>
impl<Pipe> Freeze for InputDelivery<Pipe>
impl<Pipe> Move for InputDelivery<Pipe>
impl<Pipe> RefUnwindSafe for InputDelivery<Pipe>where
Delivery<Pipe, Sha256Host>: RefUnwindSafe,
impl<Pipe> Send for InputDelivery<Pipe>
impl<Pipe> Sync for InputDelivery<Pipe>
impl<Pipe> Unpin for InputDelivery<Pipe>
impl<Pipe> UnsafeUnpin for InputDelivery<Pipe>where
Delivery<Pipe, Sha256Host>: UnsafeUnpin,
impl<Pipe> UnwindSafe for InputDelivery<Pipe>where
Delivery<Pipe, Sha256Host>: 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