[−][src]Enum ether_dream::dac::Playback
The DAC has one playback system, which buffers data and sends it to the analog output hardware at its current point rate. At any given time, the playback system is connected to a source. Usually the source is the network streamer, which uses this protocol. However, other sources exist, such as a built-in abstract generator and file playback from SD card. The playback system is in one of the following states.
Variants
The default state:
- No points may be added to the buffer.
- No output is generated.
- All analog outputs are at 0v.
- The shutter is controlled by the data source.
The buffer will accept points.
The output is the same as the Idle
state
Points are being sent to the output.
Methods
impl Playback
[src]
pub fn from_protocol(state: u8) -> Option<Self>
[src]
Create a Playback
enum from the lower-level protocol representation.
Returns None
if the given state
byte is not known.
pub fn to_protocol(&self) -> u8
[src]
Convert the LightEngine
enum to its lower-level protocol representation.
Trait Implementations
impl Clone for Playback
[src]
impl Copy for Playback
[src]
impl Debug for Playback
[src]
impl Eq for Playback
[src]
impl Hash for Playback
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Playback> for Playback
[src]
impl StructuralEq for Playback
[src]
impl StructuralPartialEq for Playback
[src]
Auto Trait Implementations
impl RefUnwindSafe for Playback
impl Send for Playback
impl Sync for Playback
impl Unpin for Playback
impl UnwindSafe for Playback
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,