Skip to main content

read_preview_details

Function read_preview_details 

pub async fn read_preview_details(
    exchange: &ExchangeCapture,
    page: usize,
    page_size: usize,
    payload_limit: impl Fn(&WebSocketMessageMetadata) -> usize + Send + Sync,
) -> Result<WebSocketDetails<WebSocketMessagePreview>, Box<dyn Error + Send + Sync>>
Available on crate features http and inspect and std and ws only.
Expand description

Read a page of bounded prefixes for a GUI or TUI without materializing messages. The interface chooses its per-message limit from the metadata. Full payloads remain available through record streams and the explicit owned details API.