pub enum DataSource {
NetworkStreaming,
IldaPlayback(IldaPlaybackFlags),
InternalAbstractGenerator(InternalAbstractGeneratorFlags),
}Expand description
The data source in use by a DAC.
Variants§
NetworkStreaming
Network streaming (the protocol implemented in this library).
IldaPlayback(IldaPlaybackFlags)
ILDA playback from an SD card.
InternalAbstractGenerator(InternalAbstractGeneratorFlags)
The DAC’s internal abstract generator.
Implementations§
Source§impl DataSource
impl DataSource
Sourcepub fn from_protocol(source: u8, flags: u16) -> Option<Self>
pub fn from_protocol(source: u8, flags: u16) -> Option<Self>
Create a DataSource enum from the lower-level protocol representation.
Returns None if the given source byte is not known.
Sourcepub fn to_protocol(&self) -> (u8, u16)
pub fn to_protocol(&self) -> (u8, u16)
Convert the LightEngine enum to its lower-level protocol representation.
Returns the source and the source_flags fields respectively.
Trait Implementations§
Source§impl Clone for DataSource
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataSource
impl Debug for DataSource
Source§impl Hash for DataSource
impl Hash for DataSource
Source§impl PartialEq for DataSource
impl PartialEq for DataSource
impl Copy for DataSource
impl Eq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations§
impl Freeze for DataSource
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
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