pub struct SerialNum { /* private fields */ }
Expand description
Struct that can be used to get the unique serial number of the sam4l
Implementations§
Source§impl SerialNum
impl SerialNum
Sourcepub fn new() -> SerialNum
pub fn new() -> SerialNum
Returns a struct that can read the serial number of the sam4l This function aliases the memory location of the underlying serial num address, but because this struct only provides read operations of the serial number, this is okay.
Sourcepub fn get_lower_64(&self) -> u64
pub fn get_lower_64(&self) -> u64
Helper function for simply returning the lower 64 bits of the serial number as a u64 rather than a byte array
Auto Trait Implementations§
impl Freeze for SerialNum
impl RefUnwindSafe for SerialNum
impl !Send for SerialNum
impl !Sync for SerialNum
impl Unpin for SerialNum
impl UnwindSafe for SerialNum
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