pub enum FixtureError {
InvalidPropertyType(String),
MultipleColorOutputTypes(String),
FixtureNameAlreadyInUse(String),
FixtureTypeNameAlreadyInUse(String),
InvalidFixtureType(String),
InvalidFixture(String),
MissingProperty(PropertyType),
DmxStateDesync,
ChannelError(ChannelError),
}Expand description
Errors that can occur when managing fixtures and fixture types.
Variants§
InvalidPropertyType(String)
The given property name does not match any known [SimplePropertyType] or ColorPropertyType.
MultipleColorOutputTypes(String)
A fixture type mixes incompatible color models (e.g. RGB and HSV).
FixtureNameAlreadyInUse(String)
A fixture with this name is already registered.
FixtureTypeNameAlreadyInUse(String)
A fixture type with this name is already registered.
InvalidFixtureType(String)
No fixture type with this name is registered.
InvalidFixture(String)
No fixture with this name is registered.
MissingProperty(PropertyType)
The fixture does not have the requested property.
DmxStateDesync
The DMX configuration and the fixture registry have drifted out of sync, indicating an internal engine inconsistency.
ChannelError(ChannelError)
A DMX-Channel operation failed.
Trait Implementations§
Source§impl Clone for FixtureError
impl Clone for FixtureError
Source§fn clone(&self) -> FixtureError
fn clone(&self) -> FixtureError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FixtureError
impl Debug for FixtureError
Source§impl<'de> Deserialize<'de> for FixtureError
impl<'de> Deserialize<'de> for FixtureError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ChannelError> for FixtureError
impl From<ChannelError> for FixtureError
Source§fn from(e: ChannelError) -> Self
fn from(e: ChannelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FixtureError
impl RefUnwindSafe for FixtureError
impl Send for FixtureError
impl Sync for FixtureError
impl Unpin for FixtureError
impl UnsafeUnpin for FixtureError
impl UnwindSafe for FixtureError
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