pub enum CodecError {
}Expand description
A bounded codec failure.
Variants§
BufferTooSmall
The caller-provided output buffer cannot hold the request.
MessageTooLarge
An encoded or declared frame exceeds the caller’s message-size limit.
StringTooLong
A 9P string exceeds the u16 length field.
TooManyNames
A walk contains more names than its u16 count can represent.
LengthOverflow
An integer length computation overflowed.
Truncated
A frame or variable-length field ends before its declared length.
InvalidFrameSize
A declared frame size is smaller than the 9P header.
FrameSizeMismatch
The frame slice contains fewer or more bytes than its size field.
InvalidTag
Tversion did not use NOTAG, or another request did use it.
TagMismatch
The response tag does not match the outstanding request.
UnexpectedMessageType(u8)
The frame type is outside the response subset understood here.
TrailingData
A decoded fixed-layout response has extra bytes.
InvalidLockType
A lock type is outside the three values defined by 9P.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
impl Copy for CodecError
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
impl Eq for CodecError
Source§impl Error for CodecError
impl Error for CodecError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()