Structs§
- Request
Frame - Decoded request whose body remains borrowed from the FIN-delimited frame.
- Request
Prelude - Decoded request prelude used before a streaming body is consumed.
Enums§
- Frame
Error - Malformed or oversized hosted-call framing.
- Response
Frame - Decoded unary response outcome.
- Stream
Frame - One length-delimited item within a server or bidirectional stream.
Constants§
- MAX_
CALL_ CONTEXT - Largest encoded call context accepted before dispatch.
- MAX_
CONTROL_ BODY - Largest protobuf control body carried in a FIN-delimited frame.
- MAX_
METHOD_ PATH - Largest fully-qualified method path accepted by the hosted-call protocol.
- MAX_
RAW_ BODY - Largest raw pack/index phase declared on one operation stream.
Functions§
- decode_
request_ frame - Decodes a complete FIN-delimited request frame.
- decode_
request_ prelude - Incrementally decodes the method and typed context at an operation-stream start.
- decode_
response_ frame - Decodes a complete FIN-delimited unary response frame.
- decode_
stream_ frame - Decodes one item from a streaming receive buffer.
- encode_
failure_ response - Encodes a contract-owned unary failure; stream FIN delimits the envelope.
- encode_
failure_ response_ into - Reuses
framefor a contract-owned unary failure. - encode_
request_ frame - Encodes
method_len:u16be | context_len:u32be | method | context | body. The operation stream FIN is the outer delimiter. - encode_
request_ prelude - Encodes the method and typed context that precede a streaming body.
- encode_
stream_ failure - Encodes one terminal failure for a streaming operation.
- encode_
stream_ failure_ into - Reuses
framefor one terminal stream failure. - encode_
stream_ message - Encodes one protobuf message for a streaming operation.
- encode_
stream_ message_ into - Reuses
framefor one protobuf stream message. - encode_
stream_ raw_ body - Encodes a raw-body header. Exactly
lengthuninterpreted bytes follow it before the next framed stream item. - encode_
stream_ raw_ body_ into - Reuses
framefor a raw-body header. - encode_
success_ response - Encodes a successful unary response; stream FIN delimits the body.
- encode_
success_ response_ into - Reuses
framefor a successful unary response.