Struct alsa::seq::EvQueueControl
source · 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§fn eq(&self, other: &EvQueueControl<T>) -> bool
fn eq(&self, other: &EvQueueControl<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd for EvQueueControl<T>
impl<T: PartialOrd> PartialOrd for EvQueueControl<T>
source§fn partial_cmp(&self, other: &EvQueueControl<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &EvQueueControl<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<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> StructuralEq for EvQueueControl<T>
impl<T> StructuralPartialEq for EvQueueControl<T>
Auto Trait Implementations§
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