#[non_exhaustive]pub enum ReadToBreakError {
MissingBreak(usize),
Other(Error),
}Expand description
Read To Break error
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.
MissingBreak(usize)
Read this many bytes, but never received a line break.
Other(Error)
Other, standard issue with the serial request
Trait Implementations§
Source§impl Clone for ReadToBreakError
impl Clone for ReadToBreakError
Source§fn clone(&self) -> ReadToBreakError
fn clone(&self) -> ReadToBreakError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadToBreakError
Source§impl Debug for ReadToBreakError
impl Debug for ReadToBreakError
impl Eq for ReadToBreakError
Source§impl Format for ReadToBreakError
impl Format for ReadToBreakError
Source§impl PartialEq for ReadToBreakError
impl PartialEq for ReadToBreakError
impl StructuralPartialEq for ReadToBreakError
Auto Trait Implementations§
impl Freeze for ReadToBreakError
impl RefUnwindSafe for ReadToBreakError
impl Send for ReadToBreakError
impl Sync for ReadToBreakError
impl Unpin for ReadToBreakError
impl UnsafeUnpin for ReadToBreakError
impl UnwindSafe for ReadToBreakError
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