pub struct SessionPrefix { /* private fields */ }Expand description
One cache session’s jointly owned exact raw transcript and incremental v2 key. Unlike a detached hasher, this API cannot consume another transcript’s feed tokens.
Implementations§
Source§impl SessionPrefix
impl SessionPrefix
Sourcepub fn new(solver: &SolverIdentity, mode: &Mode) -> Self
pub fn new(solver: &SolverIdentity, mode: &Mode) -> Self
Starts exact framing for the actual solver identity and mode.
Sourcepub fn delivery<Pipe: InputPipe>(&self, pipe: Pipe) -> InputDelivery<Pipe>
pub fn delivery<Pipe: InputPipe>(&self, pipe: Pipe) -> InputDelivery<Pipe>
Transfers a fresh actual solver input pipe into an independent delivery checker seeded with this session’s exact solver and mode header.
Sourcepub fn command<'a, 'b>(
&'b mut self,
offset: usize,
command: &'a [u8],
) -> Option<CommandFrame<'a, 'b>>
pub fn command<'a, 'b>( &'b mut self, offset: usize, command: &'a [u8], ) -> Option<CommandFrame<'a, 'b>>
Interprets only an exact command interval of this owner’s bytes.
Sourcepub fn refuse(&mut self)
pub fn refuse(&mut self)
Permanently refuses cache interpretation without changing the original bytes.
Sourcepub fn valid(&self) -> bool
pub fn valid(&self) -> bool
Whether interpretation remains valid under the checked same-owner invariant.
Sourcepub fn trailing_trivia(&self) -> bool
pub fn trailing_trivia(&self) -> bool
Whether the remaining original input is only whitespace/comments.
Sourcepub fn hash_tail(&mut self) -> bool
pub fn hash_tail(&mut self) -> bool
Hashes the owned remainder; this does not claim EOF or a clean solver run.
Sourcepub fn silence_key(&self) -> QueryKey
pub fn silence_key(&self) -> QueryKey
The current same-owner silence-key candidate; clean publication remains separate.