pub struct Finish { /* private fields */ }Expand description
Packets emitted by Encoder::finish and the decoded padding at their end.
Implementations§
Source§impl Finish
impl Finish
Sourcepub fn discard_padding(&self) -> usize
pub fn discard_padding(&self) -> usize
Decoded frames per channel to discard from the end of the final packet.
Sourcepub fn into_packets(self) -> Vec<Bytes>
pub fn into_packets(self) -> Vec<Bytes>
Consume the result and return its encoded packets.
Auto Trait Implementations§
impl Freeze for Finish
impl RefUnwindSafe for Finish
impl Send for Finish
impl Sync for Finish
impl Unpin for Finish
impl UnsafeUnpin for Finish
impl UnwindSafe for Finish
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