pub struct BatchProxyGenerator { /* private fields */ }Expand description
Batch proxy generator for processing multiple files in parallel.
Implementations§
Source§impl BatchProxyGenerator
impl BatchProxyGenerator
Sourcepub fn new(settings: ProxyGenerationSettings) -> Self
pub fn new(settings: ProxyGenerationSettings) -> Self
Create a new batch proxy generator.
Sourcepub fn with_max_parallel(self, max_parallel: usize) -> Self
pub fn with_max_parallel(self, max_parallel: usize) -> Self
Set the maximum number of parallel encodes.
Sourcepub async fn generate_batch(
&self,
inputs: &[(PathBuf, PathBuf)],
) -> Result<Vec<BatchResult>>
pub async fn generate_batch( &self, inputs: &[(PathBuf, PathBuf)], ) -> Result<Vec<BatchResult>>
Generate proxies for multiple input files.
§Errors
Returns an error if any encoding operation fails.
Auto Trait Implementations§
impl Freeze for BatchProxyGenerator
impl RefUnwindSafe for BatchProxyGenerator
impl Send for BatchProxyGenerator
impl Sync for BatchProxyGenerator
impl Unpin for BatchProxyGenerator
impl UnsafeUnpin for BatchProxyGenerator
impl UnwindSafe for BatchProxyGenerator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more