pub struct Instance {
pub action_uuid: String,
pub instance_id: InstanceId,
pub device_id: String,
pub controller: String,
pub coordinates: Coordinates,
pub is_in_multi_action: bool,
pub current_state_index: u16,
/* private fields */
}Expand description
An instance of an action bound to the device surface
Fields§
§action_uuid: StringThe UUID of the action this is an instance of
instance_id: InstanceIdAn ID that uniquely identifies this instance
device_id: StringThe device this instance is bound to
controller: StringThe controller this instance is bound to
coordinates: CoordinatesCoordinates on the device surface where this instance is bound
is_in_multi_action: boolWhether or not this instance is part of a Multi Action
current_state_index: u16Index of the currently active state within the states defined in the plugin manifest
Implementations§
Source§impl Instance
impl Instance
Sourcepub async fn show_alert(&self) -> Result<()>
pub async fn show_alert(&self) -> Result<()>
Sourcepub async fn set_settings(&self, value: &impl Serialize) -> Result<()>
pub async fn set_settings(&self, value: &impl Serialize) -> Result<()>
Sourcepub async fn get_settings(&self) -> Result<()>
pub async fn get_settings(&self) -> Result<()>
Sourcepub async fn send_to_property_inspector(
&self,
value: impl Serialize,
) -> Result<()>
pub async fn send_to_property_inspector( &self, value: impl Serialize, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Instance
impl !RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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