pub enum OutOfBandMessage {
Update(u8),
MoveToLevel {
with_on_off: bool,
level: u8,
transition_time: Option<u16>,
options_mask: OptionsBitmap,
options_override: OptionsBitmap,
},
Move {
with_on_off: bool,
move_mode: MoveModeEnum,
rate: Option<u8>,
options_mask: OptionsBitmap,
options_override: OptionsBitmap,
},
Step {
with_on_off: bool,
step_mode: StepModeEnum,
step_size: u8,
transition_time: Option<u16>,
options_mask: OptionsBitmap,
options_override: OptionsBitmap,
},
Stop,
}Expand description
Messages passed to the notify closure in LevelControlHooks::run() method.
Variants§
Update(u8)
Indicates to the handler that the value of the current level has change and it should update the Matter state accordingly. Takes the new value of the CurrentLevel.
MoveToLevel
Initiates a MoveToLevel command. This will change the state of the device if and when appropriate according to Matter logic. See Matter Application Clusters specification.
Move
Initiates a Move command. This will change the state of the device if and when appropriate according to Matter logic. See Matter Application Clusters specification.
Step
Initiates a Step command. This will change the state of the device if and when appropriate according to Matter logic. See Matter Application Clusters specification.
Stop
Stop any running LevelControl transitions.
Trait Implementations§
Source§impl Clone for OutOfBandMessage
impl Clone for OutOfBandMessage
Source§fn clone(&self) -> OutOfBandMessage
fn clone(&self) -> OutOfBandMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OutOfBandMessage
Source§impl Debug for OutOfBandMessage
impl Debug for OutOfBandMessage
impl Eq for OutOfBandMessage
Source§impl PartialEq for OutOfBandMessage
impl PartialEq for OutOfBandMessage
impl StructuralPartialEq for OutOfBandMessage
Auto Trait Implementations§
impl Freeze for OutOfBandMessage
impl RefUnwindSafe for OutOfBandMessage
impl Send for OutOfBandMessage
impl Sync for OutOfBandMessage
impl Unpin for OutOfBandMessage
impl UnsafeUnpin for OutOfBandMessage
impl UnwindSafe for OutOfBandMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more