pub struct Limitation<C, S> {
pub codec: Option<C>,
pub setting: S,
pub constraint: Constraint,
}
Expand description
Limitations add a constraint to the supported media format.
They generally set the maximum or minimum value of a setting or constrain the setting to a specific list of values. So for example you can set the maximum video width or the maximum number of audio channels. Limitations are either set on a per-codec basis or apply to all codecs.
Fields§
§codec: Option<C>
§setting: S
§constraint: Constraint
Trait Implementations§
Source§impl<C: Clone, S: Clone> Clone for Limitation<C, S>
impl<C: Clone, S: Clone> Clone for Limitation<C, S>
Source§fn clone(&self) -> Limitation<C, S>
fn clone(&self) -> Limitation<C, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C, S> From<(C, S, Constraint)> for Limitation<C, S>
impl<C, S> From<(C, S, Constraint)> for Limitation<C, S>
Source§fn from((codec, setting, constraint): (C, S, Constraint)) -> Self
fn from((codec, setting, constraint): (C, S, Constraint)) -> Self
Converts to this type from the input type.
Source§impl<C, S> From<(Option<C>, S, Constraint)> for Limitation<C, S>
impl<C, S> From<(Option<C>, S, Constraint)> for Limitation<C, S>
Source§fn from((codec, setting, constraint): (Option<C>, S, Constraint)) -> Self
fn from((codec, setting, constraint): (Option<C>, S, Constraint)) -> Self
Converts to this type from the input type.
Source§impl<C, S> From<(S, Constraint)> for Limitation<C, S>
impl<C, S> From<(S, Constraint)> for Limitation<C, S>
Source§fn from((setting, constraint): (S, Constraint)) -> Self
fn from((setting, constraint): (S, Constraint)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C, S> Freeze for Limitation<C, S>
impl<C, S> RefUnwindSafe for Limitation<C, S>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, S> Send for Limitation<C, S>
impl<C, S> Sync for Limitation<C, S>
impl<C, S> Unpin for Limitation<C, S>
impl<C, S> UnwindSafe for Limitation<C, S>where
S: UnwindSafe,
C: 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