pub struct DetailedRelationPageDraft { /* private fields */ }Expand description
Fully hydrated candidate page whose row prefix can be fit to an exact adapter envelope.
Implementations§
Source§impl DetailedRelationPageDraft
impl DetailedRelationPageDraft
Sourcepub fn candidate_rows(&self) -> usize
pub fn candidate_rows(&self) -> usize
Number of already-hydrated rows available to the adapter.
Sourcepub const fn maximum_output_bytes(&self) -> usize
pub const fn maximum_output_bytes(&self) -> usize
Exact requested encoded-output ceiling.
Sourcepub fn report_for_prefix(
&self,
selected_rows: usize,
) -> ServiceResult<DetailedRelationReport>
pub fn report_for_prefix( &self, selected_rows: usize, ) -> ServiceResult<DetailedRelationReport>
Build a complete report for one prefix without losing the omitted pending rows.
§Errors
Returns an error when the prefix is invalid or its continuation cannot fit the declared intermediate-state ceiling.
Sourcepub fn fit_output<F, E>(
&self,
control: Option<&IndexWorkControl>,
encode: F,
) -> Result<(DetailedRelationReport, String), E>
pub fn fit_output<F, E>( &self, control: Option<&IndexWorkControl>, encode: F, ) -> Result<(DetailedRelationReport, String), E>
Fit the largest row prefix to the exact encoded adapter envelope.
The encoder must return the complete text that the adapter will emit, including any top-level wrapper or selected-project audit prefix.
§Errors
Returns an adapter error when traversal cancellation is observed, a continuation cannot be encoded, rendering fails, or even the empty response envelope exceeds the requested output-byte ceiling.