[][src]Enum kekbit::core::WriteError

pub enum WriteError {
    NoSpaceAvailable {
        required: u32,
        left: u32,
    },
    MaxRecordLenExceed {
        rec_len: u32,
        max_allowed: u32,
    },
}

Write operation errors

Variants

NoSpaceAvailable

There is not enough space available in the channel for such an operation.

Fields of NoSpaceAvailable

required: u32

The space amount required by the record. It will be larger than the record size.

left: u32

The space amount available in the channel.

MaxRecordLenExceed

The record was longer than the maximum allowed.

Fields of MaxRecordLenExceed

rec_len: u32

The size of the record to be written.

max_allowed: u32

The maximum allowed size for a record.

Trait Implementations

impl Clone for WriteError[src]

impl Copy for WriteError[src]

impl Debug for WriteError[src]

impl Eq for WriteError[src]

impl Hash for WriteError[src]

impl Ord for WriteError[src]

impl PartialEq<WriteError> for WriteError[src]

impl PartialOrd<WriteError> for WriteError[src]

impl StructuralEq for WriteError[src]

impl StructuralPartialEq for WriteError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.