Skip to main content

SessionPrefix

Struct SessionPrefix 

Source
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

Source

pub fn new(solver: &SolverIdentity, mode: &Mode) -> Self

Starts exact framing for the actual solver identity and mode.

Source

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.

Source

pub fn append(&mut self, bytes: &[u8])

Appends exactly the bytes received by this session.

Source

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.

Source

pub fn bytes(&self) -> &[u8] ⓘ

Borrows all original bytes for pinned-solver replay.

Source

pub fn refuse(&mut self)

Permanently refuses cache interpretation without changing the original bytes.

Source

pub fn valid(&self) -> bool

Whether interpretation remains valid under the checked same-owner invariant.

Source

pub fn len(&self) -> u64

Number of original bytes already included in this owner’s hash.

Source

pub fn is_empty(&self) -> bool

Whether no input byte has entered this owner’s hash.

Source

pub fn trailing_trivia(&self) -> bool

Whether the remaining original input is only whitespace/comments.

Source

pub fn hash_tail(&mut self) -> bool

Hashes the owned remainder; this does not claim EOF or a clean solver run.

Source

pub fn key(&self) -> QueryKey

The current same-owner normal-key candidate.

Source

pub fn silence_key(&self) -> QueryKey

The current same-owner silence-key candidate; clean publication remains separate.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.