pub struct SourceLoader { /* private fields */ }Expand description
Compatibility source loader.
Implementations§
Source§impl SourceLoader
impl SourceLoader
Sourcepub fn from_options(options: &DownloadOptions) -> Self
pub fn from_options(options: &DownloadOptions) -> Self
Creates a loader from public download options.
Sourcepub fn with_http(self, http: DefaultHttpClient) -> Self
pub fn with_http(self, http: DefaultHttpClient) -> Self
Creates a loader with a custom HTTP client.
Sourcepub async fn load_source(
&self,
input: &str,
config: &mut ParserConfig,
) -> Result<LoadedSource>
pub async fn load_source( &self, input: &str, config: &mut ParserConfig, ) -> Result<LoadedSource>
Loads a manifest, local source, or direct live-TS source.
Sourcepub async fn load_segment_bytes(
&self,
url: &str,
config: &ParserConfig,
) -> Result<Vec<u8>>
pub async fn load_segment_bytes( &self, url: &str, config: &ParserConfig, ) -> Result<Vec<u8>>
Loads one segment-like byte source.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SourceLoader
impl !UnwindSafe for SourceLoader
impl Freeze for SourceLoader
impl Send for SourceLoader
impl Sync for SourceLoader
impl Unpin for SourceLoader
impl UnsafeUnpin for SourceLoader
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