pub struct StreamReadError { /* private fields */ }Expand description
Error emitted when an output stream cannot be read to completion.
Implementations§
Source§impl StreamReadError
impl StreamReadError
Sourcepub fn new(stream_name: &'static str, source: Error) -> Self
pub fn new(stream_name: &'static str, source: Error) -> Self
Creates a stream read error from the stream name and underlying IO error.
Sourcepub fn stream_name(&self) -> &'static str
pub fn stream_name(&self) -> &'static str
The name of the stream that failed.
Sourcepub fn kind(&self) -> ErrorKind
pub fn kind(&self) -> ErrorKind
The io::ErrorKind of the underlying read failure.
Sourcepub fn source_io_error(&self) -> &Error
pub fn source_io_error(&self) -> &Error
The underlying IO error.
Trait Implementations§
Source§impl Clone for StreamReadError
impl Clone for StreamReadError
Source§fn clone(&self) -> StreamReadError
fn clone(&self) -> StreamReadError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamReadError
impl Debug for StreamReadError
Source§impl Display for StreamReadError
impl Display for StreamReadError
Source§impl Error for StreamReadError
impl Error for StreamReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StreamReadError
impl PartialEq for StreamReadError
impl Eq for StreamReadError
Auto Trait Implementations§
impl Freeze for StreamReadError
impl !RefUnwindSafe for StreamReadError
impl Send for StreamReadError
impl Sync for StreamReadError
impl Unpin for StreamReadError
impl UnsafeUnpin for StreamReadError
impl !UnwindSafe for StreamReadError
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