pub struct EncodedAudioPacket {
pub data: Vec<u8>,
pub pts: i64,
pub duration: i64,
}Expand description
One encoded audio packet leaving the encoder.
Fields§
§data: Vec<u8>§pts: i64PTS in microseconds (matches AudioFrame::pts domain).
duration: i64Duration in encoder timescale ticks. For Opus this is 48000 ticks/sec (one 20 ms frame = 960 ticks).
Trait Implementations§
Source§impl Clone for EncodedAudioPacket
impl Clone for EncodedAudioPacket
Source§fn clone(&self) -> EncodedAudioPacket
fn clone(&self) -> EncodedAudioPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncodedAudioPacket
impl RefUnwindSafe for EncodedAudioPacket
impl Send for EncodedAudioPacket
impl Sync for EncodedAudioPacket
impl Unpin for EncodedAudioPacket
impl UnsafeUnpin for EncodedAudioPacket
impl UnwindSafe for EncodedAudioPacket
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