Skip to main content

ParkingShapeViolation

Enum ParkingShapeViolation 

Source
pub enum ParkingShapeViolation {
    NonzeroLimit {
        field: ParkingLimitField,
        actual: u64,
        required_minimum: u64,
    },
    RecoveryEntrySchemaBytes {
        actual: u64,
        required: u64,
    },
    WireSchemaBytes {
        actual: u64,
        required: u64,
    },
    RequestSchemaBytes {
        configured_request_limit: u64,
        wire_frame_limit: u64,
        actual: u64,
        required: u64,
    },
    RowSchemaBytes {
        request_limit: u64,
        row_metadata_bytes: u64,
        actual: u64,
        required: u128,
    },
    CheckedProduct(CheckedMultiplyOverflow),
    RowBytesBound {
        left: u64,
        right: u64,
        checked_product: u64,
        actual: u64,
    },
    SdkBytesBound {
        left: u64,
        right: u64,
        checked_product: u64,
        actual: u64,
    },
    RecoverableSlots {
        actual: u64,
        limit: u64,
    },
}
Expand description

Exact nine-way parking configuration-shape violation.

Variants§

§

NonzeroLimit

One of the signed limits is zero.

Fields

§field: ParkingLimitField

Offending signed field.

§actual: u64

Actual value, which is zero for this variant.

§required_minimum: u64

Required minimum, which is one for this variant.

§

RecoveryEntrySchemaBytes

Recovery request-entry schema is not the fixed width.

Fields

§actual: u64

Configured request-entry width.

§required: u64

Required request-entry width of sixteen bytes.

§

WireSchemaBytes

Wire frame is too small for one participant frame.

Fields

§actual: u64

Configured wire-frame limit.

§required: u64

Required participant-frame schema bytes.

§

RequestSchemaBytes

Effective request limit is too small for one request schema.

Fields

§configured_request_limit: u64

Configured participant request limit.

§wire_frame_limit: u64

Configured wire-frame limit.

§actual: u64

Effective request limit min(R, WF).

§required: u64

Required participant-request schema bytes.

§

RowSchemaBytes

Charged row bound is below request plus row metadata.

Fields

§request_limit: u64

Configured participant request limit.

§row_metadata_bytes: u64

Fixed row-metadata bytes.

§actual: u64

Configured charged row byte bound.

§required: u128

Exact widened required bytes.

§

CheckedProduct(CheckedMultiplyOverflow)

A required limit product overflowed u64.

§

RowBytesBound

Per-conversation bytes are below N * B.

Fields

§left: u64

Per-conversation row limit.

§right: u64

Charged row byte bound.

§checked_product: u64

Checked N * B product.

§actual: u64

Configured per-conversation byte limit.

§

SdkBytesBound

SDK-wide bytes are below G * B.

Fields

§left: u64

SDK-wide row limit.

§right: u64

Charged row byte bound.

§checked_product: u64

Checked G * B product.

§actual: u64

Configured SDK-wide byte limit.

§

RecoverableSlots

Recoverable conversation slots exceed the connection capability.

Fields

§actual: u64

Configured recoverable-conversation count.

§limit: u64

Negotiated participant-conversation slots per connection.

Trait Implementations§

Source§

impl Clone for ParkingShapeViolation

Source§

fn clone(&self) -> ParkingShapeViolation

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 ParkingShapeViolation

Source§

impl Debug for ParkingShapeViolation

Source§

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

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

impl Eq for ParkingShapeViolation

Source§

impl PartialEq for ParkingShapeViolation

Source§

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

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.