pub struct Session { /* private fields */ }Expand description
Caller-owned lifetime of one PDF source session and its original work ceiling. The existing shared parser owns the same execution boundary used by genuinely carried DER CMS/PKIX values; PDF bytes are not parsed as ASN.1. Source and current-operation work compose through the existing shared execution kernel, without another account, reset or allocator wrapper.
Implementations§
Source§impl Session
impl Session
Sourcepub fn new(limits: Limits, memory: Memory) -> Self
pub fn new(limits: Limits, memory: Memory) -> Self
Constructs trusted session state without allocation or source traversal.
Sourcepub fn execution(&self) -> Execution<'_>
pub fn execution(&self) -> Execution<'_>
Original source work and allocation account, without a new cursor or account-owner clone. Every data-dependent operation must admit work.
Sourcepub fn query<'a, W: Work>(&'a self, operation: &'a W) -> Execution<'a>
pub fn query<'a, W: Work>(&'a self, operation: &'a W) -> Execution<'a>
Attaches the current operation while retaining the original source ceiling. Cross-source queries preserve the original root operation; sharing an account does not exempt either ceiling.
Sourcepub fn object(&self, location: Location) -> Result<()>
pub fn object(&self, location: Location) -> Result<()>
Counts an object before parsing or allocating its representation.