#[non_exhaustive]pub enum WriteErrorKind {
TooMany {
element: &'static str,
max: usize,
actual: usize,
},
Missing {
element: &'static str,
},
}Expand description
What a WriteError reports.
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.
TooMany
An element repeats more often than the schema allows.
Missing
A mandatory repeated element is empty.
Trait Implementations§
Source§impl Clone for WriteErrorKind
impl Clone for WriteErrorKind
Source§fn clone(&self) -> WriteErrorKind
fn clone(&self) -> WriteErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteErrorKind
impl Debug for WriteErrorKind
Source§impl Display for WriteErrorKind
impl Display for WriteErrorKind
impl Eq for WriteErrorKind
Source§impl Error for WriteErrorKind
impl Error for WriteErrorKind
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 PartialEq for WriteErrorKind
impl PartialEq for WriteErrorKind
impl StructuralPartialEq for WriteErrorKind
Auto Trait Implementations§
impl Forget for WriteErrorKind
impl Freeze for WriteErrorKind
impl Move for WriteErrorKind
impl RefUnwindSafe for WriteErrorKind
impl Send for WriteErrorKind
impl Sync for WriteErrorKind
impl Unpin for WriteErrorKind
impl UnsafeUnpin for WriteErrorKind
impl UnwindSafe for WriteErrorKind
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