static SGX_INEFFECTIVE_ERROR: AtomicBool = AtomicBool::new(false);
if SGX_INEFFECTIVE_ERROR.load(Ordering::Relaxed) {
Err(crate::io::Error::new_const(
- ErrorKind::Other,
+ ErrorKind::Uncategorized,
&"operation can't be trusted to have any effect on SGX",
))
} else {
} else if code == Error::Interrupted as _ {
ErrorKind::Interrupted
} else if code == Error::Other as _ {
- ErrorKind::Other
+ ErrorKind::Uncategorized
} else if code == Error::UnexpectedEof as _ {
ErrorKind::UnexpectedEof
} else {
- ErrorKind::Other
+ ErrorKind::Uncategorized
}
}