pub struct CallCeiling {
pub credit: u64,
pub max_items: u64,
pub max_bytes: u64,
pub max_buffered: u64,
}Expand description
The gate’s terms for a duplex call (plexus-auth-core), re-exported so a caller of this module needs no second import. What one call may take in (BIDIR-1: “every item that flows has a limit”). Beside the transport’s per-connection call count, which counts a duplex call as one call.
BIDIR-6, the owner’s decision: nothing limits what has passed through a
call unless its method opts in (64 MiB is 56 minutes of 16 kHz PCM). What a
call costs is what it holds, so what is bounded is what it holds: credit
items, and past max_buffered bytes no more credit until the handler
drains below it. An obedient client is slowed, never ended (owner,
2026-11-02).
Fields§
§credit: u64Credit granted with the call’s answer: items the caller may send before the callee grants more, and so the items it can hold. The callee’s window, not a policy: it moves as the handler consumes.
max_items: u64Input items over the call’s life. u64::MAX (the default): no limit.
max_bytes: u64Input bytes over the call’s life (each item as its JSON). u64::MAX
(the default): no limit.
max_buffered: u64Input bytes held at once (received and not yet consumed) past which the callee grants no credit until it drains below them. Not a refusal: a client within its credit may still land up to a window’s items.
Trait Implementations§
Source§impl Clone for CallCeiling
impl Clone for CallCeiling
Source§fn clone(&self) -> CallCeiling
fn clone(&self) -> CallCeiling
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CallCeiling
Source§impl Debug for CallCeiling
impl Debug for CallCeiling
Source§impl Default for CallCeiling
impl Default for CallCeiling
Source§fn default() -> CallCeiling
fn default() -> CallCeiling
impl Eq for CallCeiling
Source§impl PartialEq for CallCeiling
impl PartialEq for CallCeiling
impl StructuralPartialEq for CallCeiling
Auto Trait Implementations§
impl Freeze for CallCeiling
impl RefUnwindSafe for CallCeiling
impl Send for CallCeiling
impl Sync for CallCeiling
impl Unpin for CallCeiling
impl UnsafeUnpin for CallCeiling
impl UnwindSafe for CallCeiling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.