pub struct InterruptHandlerDefiner<System: KernelInterruptLine> { /* private fields */ }
Expand description

The definer (static builder) for StaticInterruptHandler.

Implementations

[Required] Specify the entry point.

[Required] Specify the interrupt line to attach the interrupt handler to.

Specify the priority. Defaults to 0 when unspecified.

When multiple handlers are registered to a single interrupt line, those with smaller priority values will execute earlier.

This should not be confused with an interrupt line’s priority.

Indicate that the entry point function is unmanaged-safe (designed to execute as an unmanaged interrupt handler).

If an interrupt line is not configured with an initial priority value that falls within a managed range, configuration will fail unless all of its attached interrupt handlers are marked as unmanaged-safe.

Safety

The behavior of system calls is undefined in an unmanaged interrupt handler.

Complete the registration of an interrupt handler, returning an StaticInterruptHandler object.

Trait Implementations

Use the specified function as the entry point of the executable object being defined. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Use the specified function with dependency as the entry point of the executable object being defined. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.