Enum cea708_types::WriterError
source · pub enum WriterError {
WouldOverflow(usize),
ReadOnly,
}
Expand description
An error enum returned when writing data fails
Variants§
WouldOverflow(usize)
Writing would overflow by how many bytes
ReadOnly
It is not possible to write to this resource
Trait Implementations§
source§impl Clone for WriterError
impl Clone for WriterError
source§fn clone(&self) -> WriterError
fn clone(&self) -> WriterError
Returns a copy 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 WriterError
impl Debug for WriterError
source§impl Display for WriterError
impl Display for WriterError
source§impl Error for WriterError
impl Error for WriterError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 WriterError
impl PartialEq for WriterError
source§fn eq(&self, other: &WriterError) -> bool
fn eq(&self, other: &WriterError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WriterError
impl Eq for WriterError
impl StructuralPartialEq for WriterError
Auto Trait Implementations§
impl Freeze for WriterError
impl RefUnwindSafe for WriterError
impl Send for WriterError
impl Sync for WriterError
impl Unpin for WriterError
impl UnwindSafe for WriterError
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