Enum rotor_stream::Exception
[−]
pub enum Exception { EndOfStream, LimitReached, ReadError(Error), WriteError(Error), }
Variants
EndOfStream
End of stream reached (when reading)
This may be not a broken expectation, we just notify of end of stream always (if the state machine is still alive)
Note: the equivalent of end of stream for write system call is
translated to WriteError(WriteZero)
LimitReached
Limit for the number of bytes reached
This is called when there is alredy maximum bytes in the buffer
(third argument of Delimiter
) but no delimiter found.
ReadError(Error)
WriteError(Error)