pub struct InterruptLineDefiner<System: KernelInterruptLine> { /* private fields */ }
Expand description
The definer (static builder) for InterruptLine
.
Implementations
sourceimpl<System: KernelInterruptLine> InterruptLineDefiner<System>
impl<System: KernelInterruptLine> InterruptLineDefiner<System>
sourcepub const fn line(self, line: InterruptNum) -> Self
pub const fn line(self, line: InterruptNum) -> Self
[Required] Specify the interrupt line to confiigure.
sourcepub const fn priority(self, priority: InterruptPriority) -> Self
pub const fn priority(self, priority: InterruptPriority) -> Self
Specify the initial priority.
sourcepub const fn enabled(self, enabled: bool) -> Self
pub const fn enabled(self, enabled: bool) -> Self
Specify whether the interrupt linie should be enabled at system startup.
Defaults to false
(disabled).
sourcepub const fn finish<C: CfgInterruptLine<System = System>>(
self,
cfg: &mut Cfg<'_, C>
) -> InterruptLine<System>
pub const fn finish<C: CfgInterruptLine<System = System>>(
self,
cfg: &mut Cfg<'_, C>
) -> InterruptLine<System>
Complete the configuration of an interrupt line, returning an
InterruptLine
object.
Auto Trait Implementations
impl<System> RefUnwindSafe for InterruptLineDefiner<System>
impl<System> Send for InterruptLineDefiner<System>
impl<System> Sync for InterruptLineDefiner<System>
impl<System> Unpin for InterruptLineDefiner<System>
impl<System> UnwindSafe for InterruptLineDefiner<System>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more