Skip to main content

describe_io_error

Function describe_io_error 

Source
pub fn describe_io_error(error: &Error) -> String
Expand description

Describes error without asking the C library for an errno message.

std::io::Error’s Display and Debug render an operating-system error through strerror_r, which can call gettext and allocate through the C library’s malloc: under in-guest LiteInst, where Detcore runs inside the guest, the guest’s own heap. An operating-system error is described by its kind and number instead; any other error, or an I/O error wrapping one, as before.