pub struct TranscodeJobConfig {
pub config: TranscodeConfig,
pub priority: JobPriority,
pub max_retries: u32,
pub timeout: Option<Duration>,
pub metadata: HashMap<String, String>,
}Expand description
Configuration for a transcode job.
Fields§
§config: TranscodeConfigThe transcode configuration.
priority: JobPriorityJob priority.
max_retries: u32Maximum number of retry attempts.
timeout: Option<Duration>Timeout for the job (None = no timeout).
metadata: HashMap<String, String>Job metadata (tags, labels, etc.).
Implementations§
Source§impl TranscodeJobConfig
impl TranscodeJobConfig
Sourcepub fn new(config: TranscodeConfig) -> Self
pub fn new(config: TranscodeConfig) -> Self
Creates a new job configuration.
Sourcepub fn with_priority(self, priority: JobPriority) -> Self
pub fn with_priority(self, priority: JobPriority) -> Self
Sets the job priority.
Sourcepub fn with_max_retries(self, retries: u32) -> Self
pub fn with_max_retries(self, retries: u32) -> Self
Sets the maximum number of retries.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the job timeout.
Trait Implementations§
Source§impl Clone for TranscodeJobConfig
impl Clone for TranscodeJobConfig
Source§fn clone(&self) -> TranscodeJobConfig
fn clone(&self) -> TranscodeJobConfig
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 TranscodeJobConfig
impl RefUnwindSafe for TranscodeJobConfig
impl Send for TranscodeJobConfig
impl Sync for TranscodeJobConfig
impl Unpin for TranscodeJobConfig
impl UnsafeUnpin for TranscodeJobConfig
impl UnwindSafe for TranscodeJobConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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