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(WireType)

Wrong wire type for given field

IncorrectTag(u32)

Incorrect tag value

IncompleteMap

Malformed map field

IncorrectVarint

Malformed varint

Utf8Error

String is not valid UTD-8

InvalidEnumValue(i32)

Enum value is unknown

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.