#[non_exhaustive]pub enum VoicePacketPayload {
CeltAlpha(Vec<Bytes>),
CeltBeta(Vec<Bytes>),
Speex(Vec<Bytes>),
Opus(Bytes, bool),
}Expand description
Audio data payload of VoicePackets.
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.
CeltAlpha(Vec<Bytes>)
CELT Alpha (0.7.0) encoded audio frames.
CeltBeta(Vec<Bytes>)
CELT Beta (0.11.0) encoded audio frames.
Speex(Vec<Bytes>)
Speex encoded audio frames.
Opus(Bytes, bool)
Opus encoded audio frame with end-of-transmission bit.
Trait Implementations§
Source§impl Clone for VoicePacketPayload
impl Clone for VoicePacketPayload
Source§fn clone(&self) -> VoicePacketPayload
fn clone(&self) -> VoicePacketPayload
Returns a duplicate 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 Debug for VoicePacketPayload
impl Debug for VoicePacketPayload
Source§impl PartialEq for VoicePacketPayload
impl PartialEq for VoicePacketPayload
impl StructuralPartialEq for VoicePacketPayload
Auto Trait Implementations§
impl !Freeze for VoicePacketPayload
impl RefUnwindSafe for VoicePacketPayload
impl Send for VoicePacketPayload
impl Sync for VoicePacketPayload
impl Unpin for VoicePacketPayload
impl UnwindSafe for VoicePacketPayload
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