ariel_os_stm32/
identity.rs

1pub struct DeviceId(&'static [u8; 12]);
2
3impl ariel_os_embassy_common::identity::DeviceId for DeviceId {
4    type Bytes = &'static [u8; 12];
5
6    #[allow(
7        refining_impl_trait_reachable,
8        reason = "Making this fallible would be a breaking API change for Ariel OS."
9    )]
10    fn get() -> Result<Self, core::convert::Infallible> {
11        Ok(Self(embassy_stm32::uid::uid()))
12    }
13
14    fn bytes(&self) -> Self::Bytes {
15        self.0
16    }
17}