pub struct At<H> {
pub endpoint: EndpointId,
pub handler: H,
}Expand description
One endpoint’s clusters, for a node that has more than one.
A tuple of clusters dispatches by cluster id alone, which is all a single-endpoint device
needs. A node with two endpoints has the same cluster twice — every endpoint has its own
Descriptor (§9.5), and a two-gang switch has On/Off on both — so the id no longer picks an
instance. At supplies the missing half of the address, and Endpoints routes on it.
let handler = Endpoints((
At::new(0, Descriptor::new(node, 0)),
At::new(1, Descriptor::new(node, 1)),
));Fields§
§endpoint: EndpointIdThe endpoint this handler answers for.
handler: HWhat serves it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<H> Forget for At<H>
impl<H> Freeze for At<H>where
H: Freeze,
impl<H> Move for At<H>
impl<H> RefUnwindSafe for At<H>where
H: RefUnwindSafe,
impl<H> Send for At<H>where
H: Send,
impl<H> Sync for At<H>where
H: Sync,
impl<H> Unpin for At<H>where
H: Unpin,
impl<H> UnsafeUnpin for At<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for At<H>where
H: UnwindSafe,
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