pub enum LatencyClass {
OfflineRender,
BlockLocal,
Interactive,
SampleExact,
BufferedPreview,
CollabBarDelay,
RemoteCollaboration,
}Expand description
Real-time latency promise a transport profile makes.
Ordered loosely from most relaxed to most demanding; the kernel defines the
latency contract as Symbols and this enum is the concrete set the fabric
recognizes. LatencyClass::symbol and LatencyClass::from_symbol map to
and from the kernel symbol under the stream/latency namespace.
Variants§
OfflineRender
Offline (faster- or slower-than-real-time) rendering; no timing promise.
BlockLocal
Block-local processing latency within a single host.
Interactive
Interactive latency suitable for responsive control.
SampleExact
Sample-exact timing (the tightest real-time class).
BufferedPreview
Buffered preview latency, trading immediacy for smoothness.
CollabBarDelay
Collaboration latency tolerating up to a musical bar of delay.
RemoteCollaboration
Remote-collaboration latency across a network link.
Implementations§
Source§impl LatencyClass
impl LatencyClass
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable wire label for this class (for example
"sample-exact").
Sourcepub fn symbol(self) -> Symbol
pub fn symbol(self) -> Symbol
Returns the kernel Symbol for this class under the stream/latency
namespace.
Sourcepub fn from_symbol(symbol: &Symbol) -> Result<Self>
pub fn from_symbol(symbol: &Symbol) -> Result<Self>
Parses a LatencyClass from a kernel Symbol.
Accepts the bare label and the fully qualified stream/latency/<label>
form, erroring on any unrecognized latency class.
Trait Implementations§
Source§impl Clone for LatencyClass
impl Clone for LatencyClass
Source§fn clone(&self) -> LatencyClass
fn clone(&self) -> LatencyClass
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 LatencyClass
Source§impl Debug for LatencyClass
impl Debug for LatencyClass
impl Eq for LatencyClass
Source§impl PartialEq for LatencyClass
impl PartialEq for LatencyClass
Source§fn eq(&self, other: &LatencyClass) -> bool
fn eq(&self, other: &LatencyClass) -> bool
self and other values to be equal, and is used by ==.