pub struct GenerationId { /* private fields */ }
Expand description
Device providing initial and dynamic Generation ID update capabilities.
Implementations§
Source§impl GenerationId
impl GenerationId
Sourcepub fn new(
initial_generation_id: [u8; 16],
platform: GenerationIdRuntimeDeps,
) -> Self
pub fn new( initial_generation_id: [u8; 16], platform: GenerationIdRuntimeDeps, ) -> Self
Construct a new GenerationId device.
Sourcepub fn reset(&mut self)
pub fn reset(&mut self)
Reset the GenerationId state back to what it was when first constructed.
Sourcepub fn write_generation_id_low(&mut self, data: u32)
pub fn write_generation_id_low(&mut self, data: u32)
Update the low bits of the generation id pointer.
Sourcepub fn write_generation_id_high(&mut self, data: u32)
pub fn write_generation_id_high(&mut self, data: u32)
Update the high bits of the generation id pointer.
Trait Implementations§
Source§impl InspectMut for GenerationId
impl InspectMut for GenerationId
Source§fn inspect_mut(&mut self, req: Request<'_>)
fn inspect_mut(&mut self, req: Request<'_>)
Inspects the object.
Source§impl SaveRestore for GenerationId
impl SaveRestore for GenerationId
Auto Trait Implementations§
impl Freeze for GenerationId
impl !RefUnwindSafe for GenerationId
impl Send for GenerationId
impl Sync for GenerationId
impl Unpin for GenerationId
impl !UnwindSafe for GenerationId
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