Struct r3::kernel::interrupt::InterruptLineDefiner
source · pub struct InterruptLineDefiner<System>where
System: KernelInterruptLine,{ /* private fields */ }
Expand description
The definer (static builder) for InterruptLine
.
Implementations
sourceimpl<System> InterruptLineDefiner<System>where
System: KernelInterruptLine,
impl<System> InterruptLineDefiner<System>where
System: KernelInterruptLine,
sourcepub const fn line(self, line: usize) -> InterruptLineDefiner<System>
pub const fn line(self, line: usize) -> InterruptLineDefiner<System>
[Required] Specify the interrupt line to confiigure.
sourcepub const fn priority(self, priority: i16) -> InterruptLineDefiner<System>
pub const fn priority(self, priority: i16) -> InterruptLineDefiner<System>
Specify the initial priority.
sourcepub const fn enabled(self, enabled: bool) -> InterruptLineDefiner<System>
pub const fn enabled(self, enabled: bool) -> InterruptLineDefiner<System>
Specify whether the interrupt linie should be enabled at system startup.
Defaults to false
(disabled).
sourcepub const fn finish<C>(self, cfg: &mut Cfg<'_, C>) -> InterruptLine<System>where
C: CfgInterruptLine<System = System>,
pub const fn finish<C>(self, cfg: &mut Cfg<'_, C>) -> InterruptLine<System>where
C: CfgInterruptLine<System = 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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