pub struct SourceCapabilities { /* private fields */ }Expand description
Source node scheduling capabilities.
Implementations§
Source§impl SourceCapabilities
impl SourceCapabilities
Sourcepub const fn random_access() -> Self
pub const fn random_access() -> Self
Creates Phase 1 default source capabilities.
Sourcepub const fn with_concurrency_limit(self, limit: usize) -> Self
pub const fn with_concurrency_limit(self, limit: usize) -> Self
Returns source with explicit concurrency limit. Zero becomes one.
Sourcepub const fn supports_random_access(self) -> bool
pub const fn supports_random_access(self) -> bool
Returns true when random frame access is supported.
Sourcepub const fn indexing_required(self) -> bool
pub const fn indexing_required(self) -> bool
Returns true when source requires indexing before render.
Sourcepub const fn known_frame_count(self) -> bool
pub const fn known_frame_count(self) -> bool
Returns true when source has known finite frame count.
Sourcepub const fn concurrency_limit(self) -> Option<usize>
pub const fn concurrency_limit(self) -> Option<usize>
Returns source concurrency limit when declared.
Trait Implementations§
Source§impl Clone for SourceCapabilities
impl Clone for SourceCapabilities
Source§fn clone(&self) -> SourceCapabilities
fn clone(&self) -> SourceCapabilities
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 SourceCapabilities
impl Debug for SourceCapabilities
Source§impl PartialEq for SourceCapabilities
impl PartialEq for SourceCapabilities
Source§fn eq(&self, other: &SourceCapabilities) -> bool
fn eq(&self, other: &SourceCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SourceCapabilities
impl Eq for SourceCapabilities
impl StructuralPartialEq for SourceCapabilities
Auto Trait Implementations§
impl Freeze for SourceCapabilities
impl RefUnwindSafe for SourceCapabilities
impl Send for SourceCapabilities
impl Sync for SourceCapabilities
impl Unpin for SourceCapabilities
impl UnsafeUnpin for SourceCapabilities
impl UnwindSafe for SourceCapabilities
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