Skip to main content

preflight_command_frame

Function preflight_command_frame 

Source
pub fn preflight_command_frame<'a>(
    decoder: &FrameDecoder,
    regions: &[ChainRegion],
    request: &'a dyn ByteSource,
    response: &mut dyn ByteSink,
) -> Result<FramePreflight<'a>, FramePreflightError>
Expand description

Validate one complete chain before semantic state or a backend can be reached.

The function is allocation-free except for the bounded SUBMIT binding allocation performed by FrameDecoder. Ready leaves the response untouched. Rejected initializes exactly one 16-byte error header. Unusable leaves the response untouched.