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§
Auto Trait Implementations§
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnwindSafe for WireError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more