Enum etherparse::WriteError
source · pub enum WriteError {
IoError(Error),
ValueError(ValueError),
SliceTooSmall(usize),
}
Expand description
Errors that can occur when writing.
Variants§
IoError(Error)
ValueError(ValueError)
Error in the data that was given to write
SliceTooSmall(usize)
Error when a given slice is not big enough to serialize the data.
Implementations§
source§impl WriteError
impl WriteError
pub fn value_error(self) -> Option<ValueError>
Trait Implementations§
source§impl Debug for WriteError
impl Debug for WriteError
source§impl From<Error> for WriteError
impl From<Error> for WriteError
source§fn from(err: Error) -> WriteError
fn from(err: Error) -> WriteError
Converts to this type from the input type.
source§impl From<ValueError> for WriteError
impl From<ValueError> for WriteError
source§fn from(err: ValueError) -> WriteError
fn from(err: ValueError) -> WriteError
Converts to this type from the input type.