pub struct AttrReady {
pub data_kind: AttrDataKind,
pub counter: i32,
}Expand description
An attribute announced as ready to be read, which is what a data ready event carries: nothing of the reading itself, which is the subscriber’s to make, but the data kind of the attribute and a counter the device gives with every announcement, telling which of its readings is the one made ready.
Fields§
§data_kind: AttrDataKindThe data kind of the attribute.
counter: i32The counter the device gave with this announcement, see
crate::server::Dev::push_data_ready_event.
Trait Implementations§
impl Copy for AttrReady
impl Eq for AttrReady
impl StructuralPartialEq for AttrReady
Auto Trait Implementations§
impl Forget for AttrReady
impl Freeze for AttrReady
impl RefUnwindSafe for AttrReady
impl Send for AttrReady
impl Sync for AttrReady
impl Unpin for AttrReady
impl UnsafeUnpin for AttrReady
impl UnwindSafe for AttrReady
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