[−][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 Clone for Status
[src]
impl Copy for Status
[src]
impl Debug for Status
[src]
impl Eq for Status
[src]
impl Hash for Status
[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<Status> for Status
[src]
impl StructuralEq for Status
[src]
impl StructuralPartialEq for Status
[src]
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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>,