pub trait ExceptionRegistration: InterruptRegistration {
const EXCEPTION: Exception;
// Provided method
fn exception(&self) -> Exception { ... }
}
Expand description
A handle that can be used to configure the occupation of an interrupt caused by an exception.
The proc-macro take_exception
should be used to create an implementor of this trait.
Required Associated Constants§
Provided Methods§
Sourcefn exception(&self) -> Exception
fn exception(&self) -> Exception
The Exception
that this ExceptionRegistration
is associated with.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.