pub struct ClaimRef<'a> {
pub endpoint: EndpointId,
pub cluster: ClusterId,
pub attributes: &'a [AttributeId],
}Expand description
The claim an action is writing under (§7.15.3), as the server sees it.
Derived by the caller from AtomicWrites::find and asserted by the server — the same
shape as InteractionContext::timed, and for the same reason: the table that knows the
answer is the device’s, and the interaction model’s job is to apply it rather than to own
it.
Fields§
§endpoint: EndpointIdThe endpoint the claim is on.
cluster: ClusterIdThe cluster instance it covers.
attributes: &'a [AttributeId]The attributes it covers.
Implementations§
Source§impl ClaimRef<'_>
impl ClaimRef<'_>
Sourcepub fn covers(
&self,
endpoint: EndpointId,
cluster: ClusterId,
attribute: AttributeId,
) -> bool
pub fn covers( &self, endpoint: EndpointId, cluster: ClusterId, attribute: AttributeId, ) -> bool
Whether this claim covers one attribute of one cluster instance.
Trait Implementations§
impl<'a> Copy for ClaimRef<'a>
impl<'a> Eq for ClaimRef<'a>
impl<'a> StructuralPartialEq for ClaimRef<'a>
Auto Trait Implementations§
impl<'a> Forget for ClaimRef<'a>
impl<'a> Freeze for ClaimRef<'a>
impl<'a> Move for ClaimRef<'a>
impl<'a> RefUnwindSafe for ClaimRef<'a>
impl<'a> Send for ClaimRef<'a>
impl<'a> Sync for ClaimRef<'a>
impl<'a> Unpin for ClaimRef<'a>
impl<'a> UnsafeUnpin for ClaimRef<'a>
impl<'a> UnwindSafe for ClaimRef<'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