pub fn encoding_error(e: impl Error + Send + Sync + 'static) -> Error
Helper for mapping an encoding error.