#[non_exhaustive]pub enum ReadStatus {
More,
End,
BudgetSpent,
}Expand description
Outcome of one StreamDecoder::read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
More
Bytes were appended and the stream has more.
End
The stream ended; the call may still have appended bytes.
BudgetSpent
The budget (StreamDecoder::limit) is spent: output stops at
exactly the limit and the rest of the stream is never decoded.
Trait Implementations§
Source§impl Clone for ReadStatus
impl Clone for ReadStatus
impl Copy for ReadStatus
Source§impl Debug for ReadStatus
impl Debug for ReadStatus
impl Eq for ReadStatus
Source§impl PartialEq for ReadStatus
impl PartialEq for ReadStatus
impl StructuralPartialEq for ReadStatus
Auto Trait Implementations§
impl Forget for ReadStatus
impl Freeze for ReadStatus
impl Move for ReadStatus
impl RefUnwindSafe for ReadStatus
impl Send for ReadStatus
impl Sync for ReadStatus
impl Unpin for ReadStatus
impl UnsafeUnpin for ReadStatus
impl UnwindSafe for ReadStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more