mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
Use io::Result
This commit is contained in:
+1
-1
@@ -233,7 +233,7 @@ pub trait Codec {
|
||||
/// Finally, if the bytes in the buffer are malformed then an error is
|
||||
/// returned indicating why. This informs `Framed` that the stream is now
|
||||
/// corrupt and should be terminated.
|
||||
fn decode(&mut self, buf: &mut EasyBuf) -> Result<Option<Self::In>, io::Error>;
|
||||
fn decode(&mut self, buf: &mut EasyBuf) -> io::Result<Option<Self::In>>;
|
||||
|
||||
/// A default method available to be called when there are no more bytes
|
||||
/// available to be read from the underlying I/O.
|
||||
|
||||
Reference in New Issue
Block a user