#[non_exhaustive]pub enum ReceivedAudio {
Decoded(AudioFrame),
Compressed(ReceivedPacket<AudioPacketFormat>),
}Expand description
Audio from a PacketReceiver: a codec packet when the source’s format is
one the preset passes through, decoded samples otherwise.
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.
Decoded(AudioFrame)
Decoded planar floating-point audio.
Compressed(ReceivedPacket<AudioPacketFormat>)
A codec packet, exactly as the source sent it.
Trait Implementations§
Source§impl Clone for ReceivedAudio
impl Clone for ReceivedAudio
Auto Trait Implementations§
impl Freeze for ReceivedAudio
impl RefUnwindSafe for ReceivedAudio
impl Send for ReceivedAudio
impl Sync for ReceivedAudio
impl Unpin for ReceivedAudio
impl UnsafeUnpin for ReceivedAudio
impl UnwindSafe for ReceivedAudio
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