#[non_exhaustive]pub enum ReceivedAudioRef<'rx> {
Decoded(AudioFrameRef<'rx>),
Compressed(CompressedRef<'rx, AudioPacketFormat>),
}Expand description
Borrowed audio returned by a packet receiver.
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(AudioFrameRef<'rx>)
Decoded samples borrowed from the receiver.
Compressed(CompressedRef<'rx, AudioPacketFormat>)
Codec bytes borrowed in place.
Implementations§
Source§impl ReceivedAudioRef<'_>
impl ReceivedAudioRef<'_>
Sourcepub fn to_owned(&self) -> ReceivedAudio
pub fn to_owned(&self) -> ReceivedAudio
Copy into the corresponding owned packet or decoded samples.
Trait Implementations§
Auto Trait Implementations§
impl<'rx> Freeze for ReceivedAudioRef<'rx>
impl<'rx> RefUnwindSafe for ReceivedAudioRef<'rx>
impl<'rx> Send for ReceivedAudioRef<'rx>
impl<'rx> Sync for ReceivedAudioRef<'rx>
impl<'rx> Unpin for ReceivedAudioRef<'rx>
impl<'rx> UnsafeUnpin for ReceivedAudioRef<'rx>
impl<'rx> UnwindSafe for ReceivedAudioRef<'rx>
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