pub struct RuntimeExchangeProfile { /* private fields */ }Expand description
The size ceilings of one exchange: input and output content, and the encoded request and response that carry them.
There are exactly the profiles named here; none can be built from numbers.
Each side selects one from what it admitted locally — the host from the
authenticated package and the exact operation, the peer from its protected
bootstrap and a live entitlement — and keeps it for the session. Nothing
in a message selects or widens a profile. Every function without a profile
argument uses Self::ORDINARY, exactly as before profiles existed.
Implementations§
Source§impl RuntimeExchangeProfile
impl RuntimeExchangeProfile
Sourcepub const ORG_POLICY_VERIFIER: Self
pub const ORG_POLICY_VERIFIER: Self
The organization policy verifier: a signed artifact whose pack may be JSON-escaped up to sixfold, a trust store and a marker, each base64 in one input; and an answer that carries the pack once more, escaped through two JSON layers (at most sevenfold).
Sourcepub const ARTIFACT_READER: Self
pub const ARTIFACT_READER: Self
The shared-artifact reader: a manifest, a body envelope and an authorization in base64 with the reader’s checkout state, and an answer without content. Input and answer travel as one JSON string inside the request and the response; the frames add the room for the quotes of the typed part being escaped once more, and for the invocation around them.
Sourcepub const ARTIFACT_AUTHOR: Self
pub const ARTIFACT_AUTHOR: Self
The shared-artifact author: content and source state in, manifest and body out. The frames add the room for the typed part being escaped once more inside the request and for the answer inside the response.
Sourcepub const fn max_input_bytes(self) -> usize
pub const fn max_input_bytes(self) -> usize
Largest input content, before encoding.
Sourcepub const fn max_output_bytes(self) -> usize
pub const fn max_output_bytes(self) -> usize
Largest output content, before encoding.
Sourcepub const fn max_request_bytes(self) -> usize
pub const fn max_request_bytes(self) -> usize
Largest encoded request: the plaintext of a request frame.
Sourcepub const fn max_response_bytes(self) -> usize
pub const fn max_response_bytes(self) -> usize
Largest encoded response: the plaintext of a response frame.