pub enum MinimumUpdateIntervalSettings {
Default,
Custom(Duration),
}Expand description
Controls the minimum interval between frame updates requested from Windows Graphics Capture.
This is an OS-side throttle, not a target frame rate. A custom interval limits how frequently updates are eligible for delivery, but it does not make Windows produce frames periodically or guarantee a constant rate. The actual rate can be lower and depends on source/compositor updates, display timing, system load, and how quickly captured frames are consumed.
Consumers that require a fixed cadence must pace the output themselves, dropping excess frames
or duplicating the latest frame when necessary. crate::frame::Frame::timestamp provides the
capture timestamp for that purpose.
Variantsยง
Default
Leave the Windows Graphics Capture update interval unchanged.
Custom(Duration)
Request a custom minimum interval between eligible frame updates.
Trait Implementationsยง
Sourceยงimpl Clone for MinimumUpdateIntervalSettings
impl Clone for MinimumUpdateIntervalSettings
Sourceยงfn clone(&self) -> MinimumUpdateIntervalSettings
fn clone(&self) -> MinimumUpdateIntervalSettings
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MinimumUpdateIntervalSettings
impl Eq for MinimumUpdateIntervalSettings
impl StructuralPartialEq for MinimumUpdateIntervalSettings
Auto Trait Implementationsยง
impl Freeze for MinimumUpdateIntervalSettings
impl RefUnwindSafe for MinimumUpdateIntervalSettings
impl Send for MinimumUpdateIntervalSettings
impl Sync for MinimumUpdateIntervalSettings
impl Unpin for MinimumUpdateIntervalSettings
impl UnsafeUnpin for MinimumUpdateIntervalSettings
impl UnwindSafe for MinimumUpdateIntervalSettings
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
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> โ
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> โ
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