enody 0.1.0

SDK for Enody Lighting devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use core::range::RangeInclusive;

use crate::{
	Error,
	Identifier,
	message::Flux,
	spectral::SpectralData
};

pub trait Emitter: Send + Sync {
    fn identifier(&self) -> Identifier;
    fn flux_range(&self) -> RangeInclusive<Flux>;
    fn set_flux(&self, target_flux: Flux) -> Result<Flux, Error>;
    fn spectral_data(&self, target_flux: Flux) -> SpectralData;
}