diff --git a/ctru-rs/src/error.rs b/ctru-rs/src/error.rs index 186de3d..0be67b7 100644 --- a/ctru-rs/src/error.rs +++ b/ctru-rs/src/error.rs @@ -116,6 +116,7 @@ impl Error { Self::Libc(error_str.to_string_lossy().into()) } + /// Check if the error is a timeout. pub fn is_timeout(&self) -> bool { match *self { Error::Os(code) => R_DESCRIPTION(code) == ctru_sys::RD_TIMEOUT as ctru_sys::Result,