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 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 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
Auto Trait Implementations§
impl Freeze for PluginUpdate
impl RefUnwindSafe for PluginUpdate
impl Send for PluginUpdate
impl Sync for PluginUpdate
impl Unpin for PluginUpdate
impl UnwindSafe for PluginUpdate
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