pub struct File<P: AsRef<Path>> { /* private fields */ }Available on crate feature
driver only.Expand description
A lazily instantiated local file.
Implementations§
Trait Implementations§
Source§impl<P: AsRef<Path> + Send + Sync> Compose for File<P>
impl<P: AsRef<Path> + Send + Sync> Compose for File<P>
Source§fn create(
&mut self,
) -> Result<AudioStream<Box<dyn MediaSource>>, AudioStreamError>
fn create( &mut self, ) -> Result<AudioStream<Box<dyn MediaSource>>, AudioStreamError>
Create a source synchronously. Read more
Source§fn create_async<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AudioStream<Box<dyn MediaSource>>, AudioStreamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_async<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AudioStream<Box<dyn MediaSource>>, AudioStreamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a source asynchronously. Read more
Source§fn should_create_async(&self) -> bool
fn should_create_async(&self) -> bool
Source§fn aux_metadata<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AuxMetadata, AudioStreamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn aux_metadata<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AuxMetadata, AudioStreamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Requests auxiliary metadata which can be accessed without parsing the file. Read more
Auto Trait Implementations§
impl<P> Freeze for File<P>where
P: Freeze,
impl<P> RefUnwindSafe for File<P>where
P: RefUnwindSafe,
impl<P> Send for File<P>where
P: Send,
impl<P> Sync for File<P>where
P: Sync,
impl<P> Unpin for File<P>where
P: Unpin,
impl<P> UnwindSafe for File<P>where
P: UnwindSafe,
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