pub struct RiffFileAsync {
pub file_type: String,
pub chunks: Vec<IffChunkAsync>,
pub file_size: u32,
}Expand description
Async RIFF file structure (little-endian, used by WAV)
This struct represents the parsed structure of a RIFF file, containing the file type and all chunks found in the file.
Fields§
§file_type: StringFile type identifier (e.g., “WAVE”)
chunks: Vec<IffChunkAsync>List of chunks in the file
file_size: u32Total file size from RIFF header
Implementations§
Source§impl RiffFileAsync
impl RiffFileAsync
Sourcepub async fn parse(file: &mut TokioFile) -> Result<Self>
pub async fn parse(file: &mut TokioFile) -> Result<Self>
Parse RIFF file structure asynchronously (little-endian)
Reads the RIFF header and iterates through all chunks in the file, building a complete representation of the file structure.
Sourcepub fn find_chunk(&self, id: &str) -> Option<&IffChunkAsync>
pub fn find_chunk(&self, id: &str) -> Option<&IffChunkAsync>
Find chunk by ID (case-insensitive)
Trait Implementations§
Source§impl Clone for RiffFileAsync
impl Clone for RiffFileAsync
Source§fn clone(&self) -> RiffFileAsync
fn clone(&self) -> RiffFileAsync
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 moreAuto Trait Implementations§
impl Freeze for RiffFileAsync
impl RefUnwindSafe for RiffFileAsync
impl Send for RiffFileAsync
impl Sync for RiffFileAsync
impl Unpin for RiffFileAsync
impl UnsafeUnpin for RiffFileAsync
impl UnwindSafe for RiffFileAsync
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