Enum etherparse::WriteError [−][src]
pub enum WriteError {
IoError(Error),
ValueError(ValueError),
SliceTooSmall(usize),
}
Expand description
Errors that can occur when writing.
Variants
IoError(Error)
Tuple Fields
0: Error
ValueError(ValueError)
Tuple Fields
0: ValueError
Error in the data that was given to write
SliceTooSmall(usize)
Tuple Fields
0: usize
Error when a given slice is not big enough to serialize the data.
Implementations
Returns the std::io::Error
value if the WriteError
is an IoError
.
Otherwise `None is returned.
Returns the std::io::Error
value if the WriteError
is an ValueError
.
Otherwise None
is returned.
Returns the expected minimum size if the error is an SliceTooSmall
.
Trait Implementations
Performs the conversion.
Performs the conversion.