Skip to main content

Crate lenso_process_protocol

Crate lenso_process_protocol 

Source
Expand description

Language-neutral source types for lenso-process-jsonrpc-http-v1.

Structs§

CancelParams
Idempotent cancel params.
CapabilityDescriptor
One exact provided Capability Descriptor.
ControlAck
Successful cancel or shutdown acknowledgement.
HandshakeIdentity
Immutable identity the child must echo exactly during handshake.
HandshakeParams
Host-to-child handshake params.
HandshakeResult
Child-to-host accepted handshake result.
InvocationExtension
Portable invocation extension transported without domain interpretation.
JsonRpcError
Strict JSON-RPC 2.0 error response. Parse/invalid-request errors use a null ID.
JsonRpcErrorObject
Strict JSON-RPC 2.0 error object used before a method result exists.
JsonRpcRequest
Strict JSON-RPC request envelope.
JsonRpcSuccess
Strict successful JSON-RPC response envelope.
OperationDescriptor
One exact provided operation in handshake identity.
OutboundBindingDescriptor
One exact outbound binding exposed only by a selected consume profile.
PeerLimits
Peer-confirmed limits that must match exactly during handshake.
ProtocolError
Error returned when a Process Protocol document is malformed or inconsistent.
ReadinessRecord
One bounded readiness record written on the dedicated inherited handle.
RequestParams
Host-to-child request params for provide-request-v1.
RequestResult
Child-to-host request result.
ShutdownParams
Graceful shutdown params.

Enums§

ChildRuntimeFailure
Runtime Failures the child is permitted to originate.
InteractionKind
Interaction kinds admitted by the base V1 profile.
ProcessOutcome
Child-originated request outcomes allowed by V1.

Constants§

CANCEL_METHOD
Control method used for idempotent cancellation.
HANDSHAKE_METHOD
Control method used once during process startup.
PROCESS_PROFILE
Exact Process Protocol profile selected by an Adapter.
PROVIDE_REQUEST_PROFILE
Mandatory child-provides-request interaction profile.
REQUEST_METHOD
Data method used for one request interaction.
SHUTDOWN_METHOD
Control method used for graceful child shutdown.
VALUE_PROFILE
Portable JSON value profile used by request payloads.

Functions§

canonicalize_proof_value
Returns RFC 8785-compatible canonical bytes for the restricted proof profile.
child_proof_message
Returns the exact bytes authenticated by child_proof.
decode_strict
Decodes strict JSON, rejecting duplicate object keys before typed decoding.
encode_compact
Encodes an already validated protocol document as compact JSON.
handshake_params_digest
Computes the raw SHA-256 digest bound by host and child handshake proofs.
host_proof_message
Returns the exact bytes authenticated by host_proof.