Struct matricks_plugin::PluginUpdate
source · pub struct PluginUpdate {
pub state: Vec<Vec<[u8; 4]>>,
pub done: bool,
pub log_message: Option<Vec<String>>,
}Expand description
Update retrieved from the plugin every call to the update function
Fields§
§state: Vec<Vec<[u8; 4]>>State of each LED in the matrix, as a two-dimensional matrix of BGRA values
done: boolWhether or not the plugin is done providing updates.
If this is ever set to true, the main thread will move on to the next available plugin
log_message: Option<Vec<String>>Logs made by the plugin
If this is not None, the main thread will log the strings in the list on behalf of the plugin
Trait Implementations§
source§impl Clone for PluginUpdate
impl Clone for PluginUpdate
source§fn clone(&self) -> PluginUpdate
fn clone(&self) -> PluginUpdate
Returns a copy 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 Default for PluginUpdate
impl Default for PluginUpdate
source§impl<'de> Deserialize<'de> for PluginUpdate
impl<'de> Deserialize<'de> for PluginUpdate
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