Skip to content

Commit

Permalink
Improve doc for stream::raw::Status::remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
gyscos committed Oct 11, 2023
1 parent bd13b98 commit ba0e851
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stream/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl Operation for NoOp {
pub struct Status {
/// Number of bytes expected for next input.
///
/// This is just a hint.
/// * If `remaining = 0`, then we are at the end of a frame.
/// * If `remaining > 0`, then it's just a hint for how much there is still
/// to read.
pub remaining: usize,

/// Number of bytes read from the input.
Expand Down

0 comments on commit ba0e851

Please sign in to comment.