pub struct Scenes<'a, H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize = 5> { /* private fields */ }Expand description
Scenes Management over a shared SceneTable.
Implementations§
Source§impl<'a, H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> Scenes<'a, H, G, N, EFS, F>
impl<'a, H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> Scenes<'a, H, G, N, EFS, F>
Sourcepub const WITH_COPY_SCENE: Optional<'static>
pub const WITH_COPY_SCENE: Optional<'static>
Everything §1.4.9 leaves to the product: CopyScene.
Sourcepub const fn new(
table: &'a SceneTable<N, EFS, F>,
groups: &'a G,
hooks: &'a H,
copy_scene: bool,
) -> Self
pub const fn new( table: &'a SceneTable<N, EFS, F>, groups: &'a G, hooks: &'a H, copy_scene: bool, ) -> Self
A cluster over table, checking group membership against groups.
§1.4.5: “Any endpoint that implements the Scenes Management server cluster SHALL also implement the Groups server cluster” — so the dependency is a constructor argument rather than an option, and an endpoint cannot be assembled without it.
Sourcepub fn conforming(
feature_map: u32,
optional: &Optional<'_>,
) -> Result<Conforming<2, 8, 7, 0>>
pub fn conforming( feature_map: u32, optional: &Optional<'_>, ) -> Result<Conforming<2, 8, 7, 0>>
The descriptor for an instance, derived from the specification’s tables.
Sourcepub const fn table(&self) -> &'a SceneTable<N, EFS, F>
pub const fn table(&self) -> &'a SceneTable<N, EFS, F>
The table this cluster serves, for a device persisting it or wiring it into Groups.
Trait Implementations§
Source§impl<H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> Cluster for Scenes<'_, H, G, N, EFS, F>
So a tuple of clusters can dispatch to it by id.
impl<H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> Cluster for Scenes<'_, H, G, N, EFS, F>
So a tuple of clusters can dispatch to it by id.
Source§impl<H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> ClusterHandler for Scenes<'_, H, G, N, EFS, F>
impl<H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> ClusterHandler for Scenes<'_, H, G, N, EFS, F>
Source§fn on_lifecycle(&self, event: Lifecycle)
fn on_lifecycle(&self, event: Lifecycle)
§1.4.6: the Scene Table is fabric-scoped, so a removed fabric’s scenes go with it — including the ones stored against its groups.
Source§fn read(
&self,
resolved: &Resolved<'_>,
ctx: &InteractionContext<'_>,
w: &mut TlvWriter<'_>,
tag: Tag,
) -> Result<(), Status>
fn read( &self, resolved: &Resolved<'_>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<(), Status>
Source§fn invoke(
&self,
resolved: &ResolvedCommand<'_>,
fields: Option<&[u8]>,
ctx: &InteractionContext<'_>,
w: &mut TlvWriter<'_>,
tag: Tag,
) -> Result<Option<CommandId>, StatusIb>
fn invoke( &self, resolved: &ResolvedCommand<'_>, fields: Option<&[u8]>, ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<Option<CommandId>, StatusIb>
Runs a command. Read more
Auto Trait Implementations§
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize = 5> !RefUnwindSafe for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize = 5> !Send for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize = 5> !Sync for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize = 5> !UnwindSafe for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize> Forget for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize> Freeze for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize> Move for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize> Unpin for Scenes<'a, H, G, N, EFS, F>
impl<'a, H, G, const N: usize, const EFS: usize, const F: usize> UnsafeUnpin for Scenes<'a, H, G, N, EFS, F>
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