[][src]Struct r3::kernel::cfg::CfgInterruptLineBuilder

#[must_use = "must call `finish()` to complete registration"]pub struct CfgInterruptLineBuilder<System> { /* fields omitted */ }

Configuration builder type for InterruptLine.

Implementations

impl<System: Port> CfgInterruptLineBuilder<System>[src]

pub const fn line(self, line: InterruptNum) -> Self[src]

[Required] Specify the interrupt line to confiigure.

pub const fn priority(self, priority: InterruptPriority) -> Self[src]

Specify the initial priority.

pub const fn enabled(self, enabled: bool) -> Self[src]

Specify whether the interrupt linie should be enabled at system startup. Defaults to false (don't enable).

pub const fn finish(self, cfg: &mut CfgBuilder<System>) -> InterruptLine<System>[src]

Complete the configuration of an interrupt line, returning an InterruptLine object.

Auto Trait Implementations

impl<System> Send for CfgInterruptLineBuilder<System> where
    System: Send
[src]

impl<System> Sync for CfgInterruptLineBuilder<System> where
    System: Sync
[src]

impl<System> Unpin for CfgInterruptLineBuilder<System> where
    System: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.