concept exception in category rust

This is an excerpt from Manning's book Rust in Action.
Unless you’re familiar with hexadecimal notation, the output from
fviewcan be fairly opaque. If you’re experienced at looking at similar output, you may notice that there are no bytes above0x7e(127). There are also very few bytes less than0x21(33), with the exception of0x0a(10).Ox0arepresents the newline character ('\n'). These byte patterns are markers that we’re dealing with a plain text input source.
Listing 11. 12. Minimalist exception handling personality routine. When an exception occurs, do nothing. (ch11/ch11-fledgeos-2/src/main.rs)
#![feature(lang_items)] #[lang = "eh_personality"] #[no_mangle] pub extern "C" fn eh_personality() { }
There are two forms of interrupts, which differ in their origin. One form of interrupts occur within the CPU during its processing. They are the result of attempting to process illegal instructions and attempting to access invalid memory addresses. This first form is known technically as synchronous interrupts, but you will tend to hear them referred to by their more common name: exceptions. The second form of interrupts are generated by hardware devices, such as keyboards and accelerometers. They are what’s commonly implied by the term interrupt. They can occur at any time and are formally known as asynchronous interrupts. Just like signals, they’re also able to be generated within software. Figure 12. 1 illustrates how they inter-relate.
![]()
Figure 12. 1. A visual taxonomy of how the terms interrupt, exception, trap and fault interact within Intel CPUs.