#[non_exhaustive]pub struct PluginTiming {
pub latency: u32,
pub tail: Tail,
pub restart_required: bool,
pub latency_changed: bool,
}Expand description
A plugin’s timing as its owning thread last read it. The latency is the one the plugin was activated with: it changes only when the plugin is prepared again or reset, so processing and rendering keep one alignment in between. The tail follows the plugin’s reports.
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.latency: u32Applied processing latency in frames.
tail: TailMost recently observed native tail duration.
restart_required: boolThe plugin asked to be prepared again; processing is refused until it is.
latency_changed: boolThe plugin reported a new latency, which takes effect when it is prepared again or reset.
The chain keeps aligning to latency until then, and a render does not start.
Implementations§
Source§impl PluginTiming
impl PluginTiming
Sourcepub fn new(latency: u32, tail: Tail) -> PluginTiming
pub fn new(latency: u32, tail: Tail) -> PluginTiming
The timing of a plugin with no restart or latency change pending.
Trait Implementations§
Source§impl Clone for PluginTiming
impl Clone for PluginTiming
impl Copy for PluginTiming
Source§impl Debug for PluginTiming
impl Debug for PluginTiming
impl Eq for PluginTiming
Source§impl PartialEq for PluginTiming
impl PartialEq for PluginTiming
impl StructuralPartialEq for PluginTiming
Auto Trait Implementations§
impl Forget for PluginTiming
impl Freeze for PluginTiming
impl Move for PluginTiming
impl RefUnwindSafe for PluginTiming
impl Send for PluginTiming
impl Sync for PluginTiming
impl Unpin for PluginTiming
impl UnsafeUnpin for PluginTiming
impl UnwindSafe for PluginTiming
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