Skip to main content

TransactionLimits

Struct TransactionLimits 

Source
pub struct TransactionLimits {
Show 26 fields pub max_active_transactions: usize, pub max_active_per_channel: usize, pub max_actor_commands: usize, pub max_actor_command_bytes: usize, pub max_event_queue: usize, pub max_event_queue_bytes: usize, pub max_input_bytes: usize, pub max_messages: usize, pub max_content_parts: usize, pub max_tools_per_transaction: usize, pub max_tool_schema_bytes: usize, pub max_tool_payload_bytes: usize, pub max_tool_output_bytes: usize, pub max_concurrent_tools_per_transaction: usize, pub max_queued_tools_per_transaction: usize, pub max_continuations: usize, pub max_provider_exchanges: usize, pub max_continuation_context_bytes: usize, pub max_total_provider_input_bytes: usize, pub max_total_provider_output_bytes: usize, pub max_diagnostic_count: usize, pub max_diagnostic_bytes: usize, pub transaction_deadline: Duration, pub cleanup_deadline: Duration, pub terminal_event_delivery_deadline: Duration, pub callback_deadline: Duration,
}
Expand description

Runtime transaction bounds (see implementation §12).

Fields§

§max_active_transactions: usize

Global active transaction cap.

§max_active_per_channel: usize

Per-Channel active cap (enforced with Channel limits).

§max_actor_commands: usize

Actor command queue items.

§max_actor_command_bytes: usize

Actor command queue bytes.

§max_event_queue: usize

Event delivery queue items.

§max_event_queue_bytes: usize

Event delivery queue bytes.

§max_input_bytes: usize

Maximum input aggregate bytes (admission).

§max_messages: usize

Maximum messages.

§max_content_parts: usize

Maximum content parts per message.

§max_tools_per_transaction: usize

Maximum tools selected on one transaction.

§max_tool_schema_bytes: usize

Maximum tool schema bytes.

§max_tool_payload_bytes: usize

Maximum tool payload bytes.

§max_tool_output_bytes: usize

Maximum tool output bytes.

§max_concurrent_tools_per_transaction: usize

Concurrent tools per transaction.

§max_queued_tools_per_transaction: usize

Queued tool starts per transaction.

§max_continuations: usize

Maximum inline continuations.

§max_provider_exchanges: usize

Maximum provider exchanges.

§max_continuation_context_bytes: usize

Maximum continuation-context encoded bytes.

§max_total_provider_input_bytes: usize

Maximum total provider input bytes across exchanges.

§max_total_provider_output_bytes: usize

Maximum total provider output bytes across exchanges.

§max_diagnostic_count: usize

Maximum retained diagnostics.

§max_diagnostic_bytes: usize

Maximum bytes per diagnostic message.

§transaction_deadline: Duration

Default transaction deadline.

§cleanup_deadline: Duration

Cleanup budget after terminal selection.

§terminal_event_delivery_deadline: Duration

Terminal Ended delivery budget.

§callback_deadline: Duration

Completion callback deadline.

Implementations§

Source§

impl TransactionLimits

Source

pub fn validate(&self) -> Result<(), LimitsError>

Validate non-zero capacities and basic consistency (D-015).

Trait Implementations§

Source§

impl Clone for TransactionLimits

Source§

fn clone(&self) -> TransactionLimits

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 Debug for TransactionLimits

Source§

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

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

impl Default for TransactionLimits

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for TransactionLimits

Source§

impl PartialEq for TransactionLimits

Source§

fn eq(&self, other: &TransactionLimits) -> 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 TransactionLimits

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.