pub struct LineInterrupt { /* private fields */ }
Expand description
A line interrupt, representing a (virtually) physical wire between a device and an interrupt controller.
Implementations§
Source§impl LineInterrupt
impl LineInterrupt
Sourcepub fn detached() -> Self
pub fn detached() -> Self
Creates a line that is not attached to any line set or target.
This is useful for testing purposes.
Sourcepub fn new_with_target(
debug_label: impl Into<Cow<'static, str>>,
target: Arc<dyn LineSetTarget>,
vector: u32,
) -> LineInterrupt
pub fn new_with_target( debug_label: impl Into<Cow<'static, str>>, target: Arc<dyn LineSetTarget>, vector: u32, ) -> LineInterrupt
Creates a new line interrupt associated with provided target.
This is a shorthand helper method for:
let set = LineSet::new();
set.add_target(0..=0, vector, "target", target);
set.new_line(0, label)
Creates a new line interrupt sharing the same vector.
Trait Implementations§
Source§impl Debug for LineInterrupt
impl Debug for LineInterrupt
Source§impl Display for LineInterrupt
impl Display for LineInterrupt
Source§impl Drop for LineInterrupt
impl Drop for LineInterrupt
Auto Trait Implementations§
impl Freeze for LineInterrupt
impl !RefUnwindSafe for LineInterrupt
impl Send for LineInterrupt
impl Sync for LineInterrupt
impl Unpin for LineInterrupt
impl !UnwindSafe for LineInterrupt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more