Skip to main content

Module os_functions

Module os_functions 

Source
πŸ”¬This is a nightly-only experimental API. (core_io #154046)
Expand description

OS-dependent functions

Error needs OS functionalities to work interpret raw OS errors, but we can’t link to anythink here in alloc. Therefore, we restrict creation of Error from raw OS errors in std, and require providing a vtable of operations when creating one.

StaticsΒ§

OS_FUNCTIONS πŸ”’ Experimental
These default functions are not reachable, but have them just to be safe.

FunctionsΒ§

decode_error_kind πŸ”’ Experimental
format_os_error πŸ”’ Experimental
get_os_functions πŸ”’ Experimental
is_interrupted πŸ”’ Experimental
set_functions πŸ”’ ⚠Experimental
Safety