Browse Source

Add missing docs to Error::is_timeout

pull/86/head
AzureMarker 1 year ago
parent
commit
daf613482b
  1. 1
      ctru-rs/src/error.rs

1
ctru-rs/src/error.rs

@ -116,6 +116,7 @@ impl Error { @@ -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,

Loading…
Cancel
Save