std_shims::io

Type Alias RawOsError

Source
pub type RawOsError = i32;
🔬This is a nightly-only experimental API. (raw_os_error_ty)
Available on crate feature std only.
Expand description

The type of raw OS error codes returned by Error::raw_os_error.

This is an i32 on all currently supported platforms, but platforms added in the future (such as UEFI) may use a different primitive type like usize. Use asor into conversions where applicable to ensure maximum portability.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 4 bytes