pub enum QueueAction {
None,
DropOldest(u32),
DropNewest(u32),
Backpressure,
}Expand description
Action the runtime should take in response to queue depth.
Variants§
None
No action needed.
DropOldest(u32)
Drop the N oldest pending frames.
DropNewest(u32)
Drop the N newest pending frames.
Backpressure
Signal backpressure to the input source.
Implementations§
Source§impl QueueAction
impl QueueAction
Sourcepub fn drops_frames(self) -> bool
pub fn drops_frames(self) -> bool
Whether this action requires dropping any frames.
Trait Implementations§
Source§impl Clone for QueueAction
impl Clone for QueueAction
Source§fn clone(&self) -> QueueAction
fn clone(&self) -> QueueAction
Returns a duplicate of the value. Read more
1.0.0 · 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 QueueAction
impl Debug for QueueAction
Source§impl PartialEq for QueueAction
impl PartialEq for QueueAction
impl Copy for QueueAction
impl Eq for QueueAction
impl StructuralPartialEq for QueueAction
Auto Trait Implementations§
impl Freeze for QueueAction
impl RefUnwindSafe for QueueAction
impl Send for QueueAction
impl Sync for QueueAction
impl Unpin for QueueAction
impl UnsafeUnpin for QueueAction
impl UnwindSafe for QueueAction
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