MCPcopy Create free account
hub / github.com/3Hren/msgpack-rust / from

Method from

src/encode.rs:37–44  ·  view source on GitHub ↗
(err: byteorder::Error)

Source from the content-addressed store, hash-verified

35
36impl From<byteorder::Error> for WriteError {
37 fn from(err: byteorder::Error) -> WriteError {
38 match err {
39 byteorder::Error::UnexpectedEOF => {
40 WriteError(io::Error::new(io::ErrorKind::Other, "unexpected EOF"))
41 },
42 byteorder::Error::Io(err) => WriteError(err),
43 }
44 }
45}
46
47/// Represents an error that can occur when attempting to write marker into the write.

Callers

nothing calls this directly

Calls 2

WriteErrorClass · 0.85
MarkerWriteErrorClass · 0.85

Tested by

no test coverage detected