pub struct IrqContext<'session> { /* private fields */ }
Expand description
IrqContext provides a single-threaded context in which you can wait for specified IRQs.
This should be created from the session using Session::create_irq_context
.
The context is unreserved when it is dropped.
Implementations§
Source§impl<'session> IrqContext<'session>
impl<'session> IrqContext<'session>
Sourcepub fn wait_on_irq(
&mut self,
irq: IrqSelection,
timeout: Duration,
) -> Result<IrqWaitResult, FPGAError>
pub fn wait_on_irq( &mut self, irq: IrqSelection, timeout: Duration, ) -> Result<IrqWaitResult, FPGAError>
Wait on the specified IRQs for the specified timeout.
See IrqSelection
for details on setting specific IRQs.
Trait Implementations§
Auto Trait Implementations§
impl<'session> Freeze for IrqContext<'session>
impl<'session> RefUnwindSafe for IrqContext<'session>
impl<'session> !Send for IrqContext<'session>
impl<'session> !Sync for IrqContext<'session>
impl<'session> Unpin for IrqContext<'session>
impl<'session> UnwindSafe for IrqContext<'session>
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