[−][src]Struct ether_dream::dac::Status
A more rust-esque version of the ether_dream::protocol::DacState
.
The DAC sends its status with each DacBroadcast
and DacResponse
.
Fields
protocol: u8
This remains undocumented in the protocol.
The original implementation source simply sets this to 0
.
light_engine: LightEngine
The current state of the DAC's "light engine" state machine.
playback: Playback
The current state of the DAC's "playback" state machine.
data_source: DataSource
The currently-selected data source.
light_engine_flags: LightEngineFlags
If the light engine is Ready
no flags will be set.
playback_flags: PlaybackFlags
These flags may be non-zero during normal operation.
buffer_fullness: u16
The number of points currently buffered within the DAC.
point_rate: u32
If in the Prepared
or Playing
playback states, this is the number of points per
second for which the DAC is configured.
If in the Idle
playback state, this will be 0
.
point_count: u32
If in the Playing
playback state, this is the number of points that the DAC has actually
emitted since it started playing.
If in the Prepared
or Idle
playback states, this will be 0
.
Methods
impl Status
[src]
pub fn from_protocol(status: &DacStatus) -> Result<Self, ProtocolError>
[src]
Create a Status
from the lower-level protocol representation.
pub fn update(&mut self, status: &DacStatus) -> Result<(), ProtocolError>
[src]
Update the Status
from the lower-level protocol representation.
pub fn to_protocol(&self) -> DacStatus
[src]
Convert the Status
to its lower-level protocol representation.
Trait Implementations
impl Eq for Status
[src]
impl Copy for Status
[src]
impl PartialEq<Status> for Status
[src]
impl Clone for Status
[src]
fn clone(&self) -> Status
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Status
[src]
impl Hash for Status
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into 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> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,