Skip to main content

status_for_code

Function status_for_code 

Source
pub const fn status_for_code(code: ErrorCode) -> ErrorStatus
Expand description

Total, pure projection from ErrorCode to ErrorStatus.

Every variant is mapped here; adding a new code variant without extending this function is a compile error.