Trait ByteSourceErr

Source
pub trait ByteSourceErr: Sealed {
    // Required methods
    fn is_eof(&self) -> bool;
    fn is_would_block(&self) -> bool;
}
Expand description

Helper trait implemented for Error types of ByteSource

Required Methods§

Source

fn is_eof(&self) -> bool

Returns whether the error is an end of file (EOF) error

Source

fn is_would_block(&self) -> bool

Returns whether the error is “would block”, which means that reading can be successfull again later

Implementations on Foreign Types§

Source§

impl ByteSourceErr for Error

Available on crate feature std only.
Source§

impl<E> ByteSourceErr for Error<E>

Available on crate feature embedded_hal only.

Implementors§