pub enum Global {
Show 13 variants
ReadAttributes(Vec<u16>),
ReadAttributesResponse(Vec<ReadRecord>),
WriteAttributes(Vec<(u16, Value)>),
WriteAttributesUndivided(Vec<(u16, Value)>),
WriteAttributesResponse(Vec<(u8, Option<u16>)>),
WriteAttributesNoResponse(Vec<(u16, Value)>),
ConfigureReporting(Vec<ReportingConfig>),
ConfigureReportingResponse(Vec<ReportingStatus>),
ReportAttributes(Vec<(u16, Value)>),
DefaultResponse {
command: u8,
status: u8,
},
DiscoverAttributes {
start: u16,
max: u8,
},
DiscoverAttributesResponse {
complete: bool,
attributes: Vec<(u16, DataType)>,
},
Other {
command: u8,
payload: Vec<u8>,
},
}Expand description
A global command.
Variants§
ReadAttributes(Vec<u16>)
Read attributes.
ReadAttributesResponse(Vec<ReadRecord>)
The answer.
WriteAttributes(Vec<(u16, Value)>)
Write attributes.
WriteAttributesUndivided(Vec<(u16, Value)>)
Write attributes, all or none.
WriteAttributesResponse(Vec<(u8, Option<u16>)>)
The answer: one success record, or a record per failure.
WriteAttributesNoResponse(Vec<(u16, Value)>)
Write attributes without an answer.
ConfigureReporting(Vec<ReportingConfig>)
Configure reporting (attributes the receiver reports).
ConfigureReportingResponse(Vec<ReportingStatus>)
The answer.
ReportAttributes(Vec<(u16, Value)>)
An attribute report.
DefaultResponse
The default response.
DiscoverAttributes
Discover attributes.
DiscoverAttributesResponse
The answer.
Fields
Other
A global command this crate does not decode.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Global
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnsafeUnpin for Global
impl UnwindSafe for Global
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