pub struct Encoded {
pub payload: Bytes,
pub activity: Activity,
}Expand description
One encoded audio packet, plus what the codec was doing when it produced it.
Named for what it holds rather than mirroring Frame, so the
two never read alike at a call site that handles both.
Fields§
§payload: BytesThe packet, in the framing the matching catalog importer expects.
activity: ActivityWhether this packet codes audio, or withholds it because the input was
silent. Always Activity::Active for codecs without a discontinuous
mode, and for the coded frames that punctuate a silent run.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Encoded
impl RefUnwindSafe for Encoded
impl Send for Encoded
impl Sync for Encoded
impl Unpin for Encoded
impl UnsafeUnpin for Encoded
impl UnwindSafe for Encoded
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