pub struct Optional<'a> {
pub attributes: &'a [AttributeId],
pub commands: &'a [CommandId],
pub events: &'a [EventId],
}Expand description
The optional elements a device chooses to serve.
Conformance says what a device may have, and “may” is not derivable — an optional attribute is present because the product decided to implement it. So a device supplies its feature map, which settles the mandatory and disallowed elements, and this, which settles the rest.
Fields§
§attributes: &'a [AttributeId]Optional attributes the device serves.
commands: &'a [CommandId]Optional commands it accepts or generates.
events: &'a [EventId]Optional events it may emit.
Implementations§
Trait Implementations§
impl<'a> Copy for Optional<'a>
Auto Trait Implementations§
impl<'a> Forget for Optional<'a>
impl<'a> Freeze for Optional<'a>
impl<'a> Move for Optional<'a>
impl<'a> RefUnwindSafe for Optional<'a>
impl<'a> Send for Optional<'a>
impl<'a> Sync for Optional<'a>
impl<'a> Unpin for Optional<'a>
impl<'a> UnsafeUnpin for Optional<'a>
impl<'a> UnwindSafe for Optional<'a>
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