Skip to main content

RuntimeExchangeProfile

Struct RuntimeExchangeProfile 

Source
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

Source

pub const ORDINARY: Self

Every operation unless another profile was admitted for it.

Source

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).

Source

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.

Source

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.

Source

pub const fn max_input_bytes(self) -> usize

Largest input content, before encoding.

Source

pub const fn max_output_bytes(self) -> usize

Largest output content, before encoding.

Source

pub const fn max_request_bytes(self) -> usize

Largest encoded request: the plaintext of a request frame.

Source

pub const fn max_response_bytes(self) -> usize

Largest encoded response: the plaintext of a response frame.

Trait Implementations§

Source§

impl Clone for RuntimeExchangeProfile

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RuntimeExchangeProfile

Source§

impl Debug for RuntimeExchangeProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeExchangeProfile

Source§

impl PartialEq for RuntimeExchangeProfile

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RuntimeExchangeProfile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.