The envelope response.
Whether the response is a success.
Whether the response is a failure (early or not).
The request id and the 'result' of a success; undefined on a failure.
The request id and the 'error' of a failure; undefined on a success.
The request id; undefined on an early failure.
The 'result'; Envelope[General] on a failure.
The 'error'; Envelope[General] on a success.
The sender's document.
The sender's state, when any.
The peer's continuation, when any.
StaticsuccessA successful response to request id; an id that is not an ARID is a TypeError.
StaticfailureA failed response to request id; StateOnFailedResponse with a state.
StaticearlyA failure before the request id was known; StateOnFailedResponse with a state.
With a 'result'; undefined sets a null result, as the reference's
with_optional_result(None). Envelope[General] on a response that is
not a success, where the reference panics.
With an 'error'; undefined leaves the response unchanged, as the
reference's with_optional_error(None). Envelope[General] on a
success, where the reference panics.
The request id; Envelope[General] on an early failure, which has none.
With the sender's state (undefined clears it); StateOnFailedResponse unless the response is a success.
With the peer's continuation (undefined clears it); not an Envelope is a TypeError.
The response with 'sender', the sender's continuation when there is
state (with validUntil, encrypted to the sender) and the peer
continuation; signed by signer and encrypted to recipients. With
no options: unsigned, unsealed.
StaticfromDecrypts to the recipient, verifies the sender's signature, checks
the sender continuation (when present it must be encrypted), opens
the recipient's own continuation and parses the response; a null
state reads as no state.
SealedResponse(<summary>, state: <flat>, peer_continuation: None|Some), the reference's Display.
Same response and sender document, identical state and peer continuation (digest and structure), as the reference's PartialEq.
A response with its sender, state and the peer's continuation.