pub struct VoicePacket {
pub codec_id: CodecId,
pub payload: Vec<u8>,
}Expand description
Voice packet payload (pre-Opus or Opus-encoded audio data).
Fields§
§codec_id: CodecIdCodec for this packet.
payload: Vec<u8>Encoded audio payload.
Trait Implementations§
Source§impl Clone for VoicePacket
impl Clone for VoicePacket
Source§fn clone(&self) -> VoicePacket
fn clone(&self) -> VoicePacket
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 VoicePacket
impl Debug for VoicePacket
Source§impl<'de> Deserialize<'de> for VoicePacket
impl<'de> Deserialize<'de> for VoicePacket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VoicePacket
impl RefUnwindSafe for VoicePacket
impl Send for VoicePacket
impl Sync for VoicePacket
impl Unpin for VoicePacket
impl UnsafeUnpin for VoicePacket
impl UnwindSafe for VoicePacket
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