pub struct EvQueueControl<T> {
pub queue: i32,
pub value: T,
}
Expand description
snd_seq_ev_queue_control_t wrapper
Note: This struct is generic, but what types of T are required for the different EvQueueControl messages is not very well documented in alsa-lib. Right now, Tempo is i32, Tick, SetposTick and SyncPos are u32, SetposTime is time::Duration, and the rest is (). If I guessed wrong, let me know.
Fields§
§queue: i32
§value: T
Trait Implementations§
Source§impl<T: Clone> Clone for EvQueueControl<T>
impl<T: Clone> Clone for EvQueueControl<T>
Source§fn clone(&self) -> EvQueueControl<T>
fn clone(&self) -> EvQueueControl<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for EvQueueControl<T>
impl<T: Debug> Debug for EvQueueControl<T>
Source§impl<T: Default> Default for EvQueueControl<T>
impl<T: Default> Default for EvQueueControl<T>
Source§fn default() -> EvQueueControl<T>
fn default() -> EvQueueControl<T>
Returns the “default value” for a type. Read more
Source§impl<T: Hash> Hash for EvQueueControl<T>
impl<T: Hash> Hash for EvQueueControl<T>
Source§impl<T: Ord> Ord for EvQueueControl<T>
impl<T: Ord> Ord for EvQueueControl<T>
Source§fn cmp(&self, other: &EvQueueControl<T>) -> Ordering
fn cmp(&self, other: &EvQueueControl<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for EvQueueControl<T>
impl<T: PartialEq> PartialEq for EvQueueControl<T>
Source§impl<T: PartialOrd> PartialOrd for EvQueueControl<T>
impl<T: PartialOrd> PartialOrd for EvQueueControl<T>
impl<T: Copy> Copy for EvQueueControl<T>
impl<T: Eq> Eq for EvQueueControl<T>
impl EventData for EvQueueControl<()>
impl EventData for EvQueueControl<Duration>
impl EventData for EvQueueControl<i32>
impl EventData for EvQueueControl<u32>
impl<T> StructuralPartialEq for EvQueueControl<T>
Auto Trait Implementations§
impl<T> Freeze for EvQueueControl<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvQueueControl<T>where
T: RefUnwindSafe,
impl<T> Send for EvQueueControl<T>where
T: Send,
impl<T> Sync for EvQueueControl<T>where
T: Sync,
impl<T> Unpin for EvQueueControl<T>where
T: Unpin,
impl<T> UnwindSafe for EvQueueControl<T>where
T: UnwindSafe,
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