Enum rkyv::ser::serializers::BufferSerializerError[][src]

pub enum BufferSerializerError {
    Overflow {
        pos: usize,
        bytes_needed: usize,
        archive_len: usize,
    },
    SoughtPastEnd {
        seek_position: usize,
        archive_len: usize,
    },
}
Expand description

The error type returned by an BufferSerializer.

Variants

Overflow

Writing has overflowed the internal buffer.

Show fields

Fields of Overflow

pos: usize

The position of the serializer

bytes_needed: usize

The number of bytes needed

archive_len: usize

The total length of the archive

SoughtPastEnd

The serializer sought past the end of the internal buffer.

Show fields

Fields of SoughtPastEnd

seek_position: usize

The position of the serializer

archive_len: usize

The total length of the archive

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type for metadata in pointers and references to Self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.