pub enum Error {
MalformedStatusLine(String),
VersionTooOld {
theirs: i32,
},
VersionTooNew {
theirs: i32,
ours: i32,
},
UidMismatch {
expected: String,
actual: String,
},
ByteOrderNotSupported(i32),
Status(StatusLine),
Incomplete,
}Expand description
A protocol error.
Variants§
MalformedStatusLine(String)
The status line held fewer than three parts, or a wrong prefix.
VersionTooOld
The server agreed to a version that this implementation does not read.
Protocol 1.00 carries every sample in a Boost archive
(src/sample.cpp:330). Reading one is out of scope, so a feed that
agrees to 1.00 stops here rather than decoding the bytes as 1.10.
VersionTooNew
The other side runs a newer major version.
Fields
UidMismatch
The answer named a UID that does not match this connection.
Fields
ByteOrderNotSupported(i32)
The answer asked for a byte order that this side cannot produce.
Status(StatusLine)
The other side answered with a status code that stops the feed.
Incomplete
The buffer held no complete block.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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