#[non_exhaustive]pub struct Applied {
pub preset: Option<Preset>,
pub controls: String,
pub cut: bool,
}Expand description
The latency and compression controls a backend actually applied at open.
A report, not a request: a backend that has no distinct mapping for the
requested Preset names the one whose controls it did apply, and one that
could not confirm the controls a preset needs names none.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.preset: Option<Preset>The preset whose controls took effect, or None when the backend could
not confirm them (a refused or advisory low-latency setting).
controls: StringThe backend controls that took effect, for display, e.g.
"p1, low-latency tuning, no B-frames, CQ 30 under the cap, 3-frame VBV". Not a parse target.
cut: boolWhether Encoder::cut can force a group boundary; one that cannot (a V4L2
driver without the force-keyframe control) refuses every cut.
Trait Implementations§
impl Eq for Applied
impl StructuralPartialEq for Applied
Auto Trait Implementations§
impl Freeze for Applied
impl RefUnwindSafe for Applied
impl Send for Applied
impl Sync for Applied
impl Unpin for Applied
impl UnsafeUnpin for Applied
impl UnwindSafe for Applied
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.