pub const fn map_restore_error_kind(kind: ErrorKind) -> ErrorIdExpand description
Map restore error kinds to stable ErrorId for telemetry.
Keep this conservative to support older stable compilers; many ErrorKind
variants (e.g., NotADirectory, IsADirectory) were stabilized later.