#[non_exhaustive]pub enum MultipartWriteError {
InvalidFieldName,
InvalidFieldValue,
Delimiter,
NoPart,
}Expand description
Why a writer refused to write.
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.
InvalidFieldName
A field name is empty or has a character other than visible ASCII except the colon.
InvalidFieldValue
A field value has a control character other than horizontal tab, such as CR or LF.
Delimiter
A header line or content contains the boundary after a line break, so a reader would see the part end there.
NoPart
Content was written before any part started.
Trait Implementations§
Source§impl Clone for MultipartWriteError
impl Clone for MultipartWriteError
impl Copy for MultipartWriteError
Source§impl Debug for MultipartWriteError
impl Debug for MultipartWriteError
Source§impl Display for MultipartWriteError
impl Display for MultipartWriteError
impl Eq for MultipartWriteError
Source§impl Error for MultipartWriteError
impl Error for MultipartWriteError
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 Hash for MultipartWriteError
impl Hash for MultipartWriteError
Source§impl PartialEq for MultipartWriteError
impl PartialEq for MultipartWriteError
impl StructuralPartialEq for MultipartWriteError
Auto Trait Implementations§
impl Forget for MultipartWriteError
impl Freeze for MultipartWriteError
impl RefUnwindSafe for MultipartWriteError
impl Send for MultipartWriteError
impl Sync for MultipartWriteError
impl Unpin for MultipartWriteError
impl UnsafeUnpin for MultipartWriteError
impl UnwindSafe for MultipartWriteError
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