#[repr(u8)]pub enum ClosureError {
Physicallyblocked = 0,
Blockedbysensor = 1,
Temperaturelimited = 2,
Maintenancerequired = 3,
Internalinterference = 4,
}Variants§
Physicallyblocked = 0
An obstacle is blocking the closure movement
Blockedbysensor = 1
The closure is unsafe to move, as determined by a sensor (e.g. photoelectric sensor) before attempting movement
Temperaturelimited = 2
A warning raised by the closure that indicates an over-temperature, e.g. due to excessive drive or stall current
Maintenancerequired = 3
Some malfunctions that are not easily recoverable are detected, or urgent servicing is needed
Internalinterference = 4
An internal element is prohibiting motion, e.g. an integrated door within a bigger garage door is open and prevents motion
Implementations§
Trait Implementations§
Source§impl Clone for ClosureError
impl Clone for ClosureError
Source§fn clone(&self) -> ClosureError
fn clone(&self) -> ClosureError
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 ClosureError
impl Debug for ClosureError
Source§impl<'de> Deserialize<'de> for ClosureError
impl<'de> Deserialize<'de> for ClosureError
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<ClosureError> for u8
impl From<ClosureError> for u8
Source§fn from(val: ClosureError) -> Self
fn from(val: ClosureError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClosureError
impl PartialEq for ClosureError
Source§impl Serialize for ClosureError
impl Serialize for ClosureError
impl Copy for ClosureError
impl Eq for ClosureError
impl StructuralPartialEq for ClosureError
Auto Trait Implementations§
impl Freeze for ClosureError
impl RefUnwindSafe for ClosureError
impl Send for ClosureError
impl Sync for ClosureError
impl Unpin for ClosureError
impl UnwindSafe for ClosureError
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