#[repr(C)]pub struct Attribute<T, E: Error + PluginError> {
pub name: CString,
pub value: Value,
pub callbacks_init: Callbacks<T, E>,
pub callbacks_run: Callbacks<T, E>,
}Expand description
A single piece of information that partly determines the state of a plugin.
Fields§
§name: CStringThe name of the attribute.
value: ValueThe value of the attribute.
This field may be used to cache values retrieved from the hardware. This is the initial value of non-constant attributes.
callbacks_init: Callbacks<T, E>The callback functions that are fired when the attribute is either read or set during the init phase of the plugin.
callbacks_run: Callbacks<T, E>The callback functions that are fired when the attribute is either read or set during the run phase of the plugin.
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Attribute<T, E>
impl<T, E> RefUnwindSafe for Attribute<T, E>
impl<T, E> Send for Attribute<T, E>
impl<T, E> Sync for Attribute<T, E>
impl<T, E> Unpin for Attribute<T, E>
impl<T, E> UnwindSafe for Attribute<T, E>
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