pub struct EffectiveCodecPolicy { /* private fields */ }Expand description
Fully resolved codec and face policy at one namespace node.
Implementations§
Source§impl EffectiveCodecPolicy
impl EffectiveCodecPolicy
Sourcepub fn empty() -> EffectiveCodecPolicy
pub fn empty() -> EffectiveCodecPolicy
Creates the bounded default policy with no selected codecs.
Sourcepub fn derive(
patches: impl IntoIterator<Item = CodecPolicyPatch>,
) -> EffectiveCodecPolicy
pub fn derive( patches: impl IntoIterator<Item = CodecPolicyPatch>, ) -> EffectiveCodecPolicy
Resolves patches in tree-to-leaf order, replacing only fields each patch explicitly carries.
Sourcepub fn source_codec(&self) -> Option<&str>
pub fn source_codec(&self) -> Option<&str>
Active source codec name, when selected.
Sourcepub const fn source_position(&self) -> DecodePosition
pub const fn source_position(&self) -> DecodePosition
Source decode position and matching source-face encode position.
Sourcepub const fn decode_limits(&self) -> DecodeLimits
pub const fn decode_limits(&self) -> DecodeLimits
Bounded limits used for edited source.
Sourcepub const fn source_budget(&self) -> FaceBudget
pub const fn source_budget(&self) -> FaceBudget
Independent source-face budget.
Sourcepub fn result_codec(&self) -> Option<&str>
pub fn result_codec(&self) -> Option<&str>
Active result codec name, when selected.
Sourcepub const fn result_position(&self) -> EncodePosition
pub const fn result_position(&self) -> EncodePosition
Result encode position.
Sourcepub const fn result_budget(&self) -> FaceBudget
pub const fn result_budget(&self) -> FaceBudget
Independent result-face budget.
Trait Implementations§
Source§impl Clone for EffectiveCodecPolicy
impl Clone for EffectiveCodecPolicy
Source§fn clone(&self) -> EffectiveCodecPolicy
fn clone(&self) -> EffectiveCodecPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EffectiveCodecPolicy
impl Debug for EffectiveCodecPolicy
Source§impl Default for EffectiveCodecPolicy
impl Default for EffectiveCodecPolicy
Source§fn default() -> EffectiveCodecPolicy
fn default() -> EffectiveCodecPolicy
Returns the “default value” for a type. Read more
impl Eq for EffectiveCodecPolicy
Source§impl PartialEq for EffectiveCodecPolicy
impl PartialEq for EffectiveCodecPolicy
impl StructuralPartialEq for EffectiveCodecPolicy
Auto Trait Implementations§
impl Freeze for EffectiveCodecPolicy
impl RefUnwindSafe for EffectiveCodecPolicy
impl Send for EffectiveCodecPolicy
impl Sync for EffectiveCodecPolicy
impl Unpin for EffectiveCodecPolicy
impl UnsafeUnpin for EffectiveCodecPolicy
impl UnwindSafe for EffectiveCodecPolicy
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