embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Interrupt

Struct Interrupt 

Source
pub struct Interrupt<'d, D: Driver<'d>, const N: usize> { /* private fields */ }
Expand description

The AudioControl interrupt endpoint: tells the host which controls the device changed itself, so it reads them again. Keep Self::run running.

Implementations§

Source§

impl<'d, D: Driver<'d>, const N: usize> Interrupt<'d, D, N>

Source

pub async fn run(&mut self) -> !

Sends a notification for each control changed through ControlMonitor::set_line_out_volume or ControlMonitor::set_line_in_volume.

Auto Trait Implementations§

§

impl<'d, D, const N: usize> !RefUnwindSafe for Interrupt<'d, D, N>

§

impl<'d, D, const N: usize> !UnwindSafe for Interrupt<'d, D, N>

§

impl<'d, D, const N: usize> Forget for Interrupt<'d, D, N>

§

impl<'d, D, const N: usize> Freeze for Interrupt<'d, D, N>
where <D as Driver<'d>>::EndpointIn: Freeze, &'d SharedControl<'d, N>: Freeze,

§

impl<'d, D, const N: usize> Move for Interrupt<'d, D, N>

§

impl<'d, D, const N: usize> Send for Interrupt<'d, D, N>
where <D as Driver<'d>>::EndpointIn: Send, &'d SharedControl<'d, N>: Send,

§

impl<'d, D, const N: usize> Sync for Interrupt<'d, D, N>
where <D as Driver<'d>>::EndpointIn: Sync, &'d SharedControl<'d, N>: Sync,

§

impl<'d, D, const N: usize> Unpin for Interrupt<'d, D, N>
where <D as Driver<'d>>::EndpointIn: Unpin, &'d SharedControl<'d, N>: Unpin,

§

impl<'d, D, const N: usize> UnsafeUnpin for Interrupt<'d, D, N>
where <D as Driver<'d>>::EndpointIn: UnsafeUnpin, &'d SharedControl<'d, N>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.