pub enum StreamWriteError {
ZeroSizeWriteBuffer,
Write(Error),
}
Expand description
An error that can occur during the stream writes.
Variants§
ZeroSizeWriteBuffer
The write was called with a zero-size write buffer.
Write(Error)
The write call thrown an exception.
Trait Implementations§
Source§impl Debug for StreamWriteError
impl Debug for StreamWriteError
Source§impl Display for StreamWriteError
impl Display for StreamWriteError
Source§impl Error for StreamWriteError
impl Error for StreamWriteError
1.30.0 · 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 ErrorAsErrorCode for StreamWriteError
impl ErrorAsErrorCode for StreamWriteError
Auto Trait Implementations§
impl Freeze for StreamWriteError
impl RefUnwindSafe for StreamWriteError
impl !Send for StreamWriteError
impl !Sync for StreamWriteError
impl Unpin for StreamWriteError
impl UnwindSafe for StreamWriteError
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