Enum protobuf::error::WireError[][src]

pub enum WireError {
    UnexpectedEof,
    UnexpectedWireType(WireType),
    IncorrectTag(u32),
    IncompleteMap,
    IncorrectVarint,
    Utf8Error,
    InvalidEnumValue(i32),
    OverRecursionLimit,
    TruncatedMessage,
    Other,
}
Expand description

Enum values added here for diagnostic purposes. Users should not depend on specific values.

Variants

UnexpectedEof

Could not read complete message because stream is EOF

UnexpectedWireType

Wrong wire type for given field

Tuple Fields of UnexpectedWireType

0: WireType
IncorrectTag

Incorrect tag value

Tuple Fields of IncorrectTag

0: u32
IncompleteMap

Malformed map field

IncorrectVarint

Malformed varint

Utf8Error

String is not valid UTD-8

InvalidEnumValue

Enum value is unknown

Tuple Fields of InvalidEnumValue

0: i32
OverRecursionLimit

Message is too nested

TruncatedMessage

Could not read complete message because stream is EOF

Other

Other error

Trait Implementations

Formats the value using the given formatter. Read more

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.

Converts the given value to a String. 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.