pub enum ChannelError {
ChannelOutOfRange,
UniverseOutOfRange,
ChannelAlreadyInUse(String),
FineDegreeExists(usize),
FineDegreeTooHigh(usize),
FineDegreeOutOfRange(usize),
}Expand description
Errors that can occur when reserving or accessing DMX-Channels.
Variants§
ChannelOutOfRange
The channel number exceeds MAX_CHANNEL.
UniverseOutOfRange
The universe index exceeds the configured universe count.
ChannelAlreadyInUse(String)
The channel is already reserved by the named fixture.
FineDegreeExists(usize)
The channel has the same fine-degree multiple times
FineDegreeTooHigh(usize)
The channel has too high fine-degrees, while lower fine-degrees don’t exist
FineDegreeOutOfRange(usize)
The channel has to many fine-channels
Trait Implementations§
Source§impl Clone for ChannelError
impl Clone for ChannelError
Source§fn clone(&self) -> ChannelError
fn clone(&self) -> ChannelError
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 ChannelError
impl Debug for ChannelError
Source§impl<'de> Deserialize<'de> for ChannelError
impl<'de> Deserialize<'de> for ChannelError
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 ChannelError
impl RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl UnsafeUnpin for ChannelError
impl UnwindSafe for ChannelError
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