Skip to main content

SecretBoxBytesBuildError

Type Alias SecretBoxBytesBuildError 

Source
pub type SecretBoxBytesBuildError = SecretAllocationError;
Expand description

Compatibility name for fixed-allocation build failures.

Aliased Type§

pub enum SecretBoxBytesBuildError {
    TooLong {
        maximum: usize,
        actual: usize,
    },
    CapacityOverflow,
    Allocation(TryReserveError),
}

Variants§

§

TooLong

The requested public length exceeded the caller’s maximum.

Fields

§maximum: usize

Maximum accepted length.

§actual: usize

Rejected requested length.

§

CapacityOverflow

Arithmetic for the required allocation capacity overflowed.

§

Allocation(TryReserveError)

The allocator could not reserve the requested storage.