#[non_exhaustive]pub enum PrefixReadTermination {
LimitReached,
StreamEnded,
}Expand description
Explains why a bounded prefix read stopped.
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.
LimitReached
The requested prefix limit was reached without probing beyond it.
StreamEnded
The opened stream returned EOF before the requested prefix limit.
Trait Implementations§
Source§impl Clone for PrefixReadTermination
impl Clone for PrefixReadTermination
impl Copy for PrefixReadTermination
Source§impl Debug for PrefixReadTermination
impl Debug for PrefixReadTermination
impl Eq for PrefixReadTermination
Source§impl PartialEq for PrefixReadTermination
impl PartialEq for PrefixReadTermination
impl StructuralPartialEq for PrefixReadTermination
Auto Trait Implementations§
impl Freeze for PrefixReadTermination
impl RefUnwindSafe for PrefixReadTermination
impl Send for PrefixReadTermination
impl Sync for PrefixReadTermination
impl Unpin for PrefixReadTermination
impl UnsafeUnpin for PrefixReadTermination
impl UnwindSafe for PrefixReadTermination
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