pub enum StreamMedia {
Pcm,
Midi,
Diagnostic,
Data,
}Expand description
Media kind carried by a stream.
Selects which packet profile an envelope on the stream is expected to
carry and which stream/media/* symbol identifies the stream in the
claim store.
Variants§
Pcm
Real-time PCM audio frames (see PcmPacket).
Midi
MIDI events (see MidiPacket).
Diagnostic
Diagnostic messages (see StreamDiagnostic).
Data
Opaque structured data payloads (see DataPacket).
Implementations§
Source§impl StreamMedia
impl StreamMedia
Sourcepub fn from_symbol(symbol: &Symbol) -> Result<Self>
pub fn from_symbol(symbol: &Symbol) -> Result<Self>
Parses a StreamMedia from its stream/media/* symbol.
Returns an error for any symbol outside the known media kinds.
Trait Implementations§
Source§impl Clone for StreamMedia
impl Clone for StreamMedia
Source§fn clone(&self) -> StreamMedia
fn clone(&self) -> StreamMedia
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 moreimpl Copy for StreamMedia
Source§impl Debug for StreamMedia
impl Debug for StreamMedia
impl Eq for StreamMedia
Source§impl PartialEq for StreamMedia
impl PartialEq for StreamMedia
Source§fn eq(&self, other: &StreamMedia) -> bool
fn eq(&self, other: &StreamMedia) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamMedia
Auto Trait Implementations§
impl Freeze for StreamMedia
impl RefUnwindSafe for StreamMedia
impl Send for StreamMedia
impl Sync for StreamMedia
impl Unpin for StreamMedia
impl UnsafeUnpin for StreamMedia
impl UnwindSafe for StreamMedia
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