pub enum StreamCapability {
Exact,
Deterministic,
Realtime,
Bounded,
Remote,
Replayable,
Preview,
Persistent,
Resumable,
Lossy,
}Expand description
One thing a transport is permitted to do with a stream.
A TransportProfile carries a set of these. The kernel defines the
capability vocabulary as Symbols; this enum is the concrete set the
fabric recognizes, mapped under the stream/capability namespace.
Variants§
Exact
Sample-exact delivery with no approximation.
Deterministic
Deterministic, reproducible output for identical input.
Realtime
Real-time delivery.
Bounded
Bounded buffering and latency.
Remote
Delivery across a remote (networked) link.
Replayable
Output that can be replayed from a recorded source.
Preview
Lower-fidelity preview output.
Persistent
Output backed by persistent storage.
Resumable
Delivery that can resume after interruption.
Lossy
Lossy delivery that may drop or approximate data.
Implementations§
Source§impl StreamCapability
impl StreamCapability
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable wire label for this capability (for example
"realtime").
Sourcepub fn symbol(self) -> Symbol
pub fn symbol(self) -> Symbol
Returns the kernel Symbol for this capability under the
stream/capability namespace.
Sourcepub fn from_symbol(symbol: &Symbol) -> Result<Self>
pub fn from_symbol(symbol: &Symbol) -> Result<Self>
Parses a StreamCapability from a kernel Symbol.
Accepts the bare label and the fully qualified
stream/capability/<label> form, erroring on any unrecognized
capability.
Sourcepub fn latency_class(self) -> LatencyClass
pub fn latency_class(self) -> LatencyClass
Returns the latency class this capability implies on its own.
Used as a default when reasoning about a lone capability; an assembled
TransportProfile carries its own LatencyClass independently.
Trait Implementations§
Source§impl Clone for StreamCapability
impl Clone for StreamCapability
Source§fn clone(&self) -> StreamCapability
fn clone(&self) -> StreamCapability
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 StreamCapability
Source§impl Debug for StreamCapability
impl Debug for StreamCapability
impl Eq for StreamCapability
Source§impl PartialEq for StreamCapability
impl PartialEq for StreamCapability
Source§fn eq(&self, other: &StreamCapability) -> bool
fn eq(&self, other: &StreamCapability) -> bool
self and other values to be equal, and is used by ==.