Enum osmpbf::BlobError[][src]

pub enum BlobError {
    InvalidHeaderSize,
    HeaderTooBig {
        size: u64,
    },
    MessageTooBig {
        size: u64,
    },
    Empty,
    // some variants omitted
}
Expand description

An error that occurs when decoding a blob.

Variants

InvalidHeaderSize

Header size could not be decoded to a u32.

HeaderTooBig

Fields

size: u64

Blob header size in bytes.

Blob header is bigger than MAX_BLOB_HEADER_SIZE.

MessageTooBig

Fields

size: u64

Blob content size in bytes.

Blob content is bigger than MAX_BLOB_MESSAGE_SIZE.

Empty

The blob is empty because the raw and zlib-data fields are missing.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.