#[non_exhaustive]#[repr(u32)]pub enum Stream {
Capture = 1,
Playback = 0,
}Available on crate feature
alsa only.Expand description
Defines the direction of a stream.
See Pcm::open.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Capture = 1
A capture stream. Corresponds to SND_PCM_STREAM_CAPTURE.
Playback = 0
A playback stream. Corresponds to SND_PCM_STREAM_PLAYBACK.
Implementations§
Trait Implementations§
Source§impl Ord for Stream
impl Ord for Stream
Source§impl PartialOrd for Stream
impl PartialOrd for Stream
impl Copy for Stream
impl Eq for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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