mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
Export LinesCodecError (#1350)
This commit is contained in:
committed by
Lucio Franco
parent
ca0e5cc670
commit
79b017c773
@@ -190,9 +190,12 @@ impl Encoder for LinesCodec {
|
||||
}
|
||||
}
|
||||
|
||||
/// An error occured while encoding or decoding a line.
|
||||
#[derive(Debug)]
|
||||
pub enum LinesCodecError {
|
||||
/// The maximum line length was exceeded.
|
||||
MaxLineLengthExceeded,
|
||||
/// An IO error occured.
|
||||
Io(io::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user