Enum osmpbf::ErrorKind[][src]

pub enum ErrorKind {
    Io(Error),
    Protobuf {
        err: ProtobufError,
        location: &'static str,
    },
    StringtableUtf8 {
        err: Utf8Error,
        index: usize,
    },
    StringtableIndexOutOfBounds {
        index: usize,
    },
    Blob(BlobError),
    // some variants omitted
}

The specific type of an error.

Variants

Io(Error)

An error for I/O operations.

Protobuf

An error that occurs when decoding a protobuf message.

Show fields

Fields of Protobuf

err: ProtobufErrorlocation: &'static str
StringtableUtf8

The stringtable contains an entry at index that could not be decoded to a valid UTF-8 string.

Show fields

Fields of StringtableUtf8

err: Utf8Errorindex: usize
StringtableIndexOutOfBounds

An element contains an out-of-bounds index to the stringtable.

Show fields

Fields of StringtableIndexOutOfBounds

index: usize
Blob(BlobError)

An error that occurs when decoding Blobs.

Trait Implementations

impl Debug for ErrorKind[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> Pointable for T

type Init = T

The type for initializers.

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.