pub enum WriteError {
InconsistentFieldCount {
expected: usize,
found: usize,
row: usize,
},
HeadersAlreadyWritten,
Serialize(String),
Io(Error),
}Expand description
An error returned when writing CSV data.
Variants§
InconsistentFieldCount
The number of fields in a row differs from previous rows.
HeadersAlreadyWritten
A second attempt was made to write headers after they’ve already been written.
Serialize(String)
A serde serialization error occurred.
Io(Error)
An I/O error occurred while writing.
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
Source§impl Error for WriteError
Available on crate feature std only.
impl Error for WriteError
Available on crate feature
std only.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()
Auto Trait Implementations§
impl !RefUnwindSafe for WriteError
impl !UnwindSafe for WriteError
impl Freeze for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteError
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