pub struct Sha<'d> { /* private fields */ }Implementations§
source§impl<'d> Sha<'d>
impl<'d> Sha<'d>
pub fn new(sha: impl Peripheral<P = SHA> + 'd, mode: ShaMode) -> Self
pub fn first_run(&self) -> bool
pub fn finished(&self) -> bool
pub fn digest_length(&self) -> usize
pub fn update<'a>(&mut self, buffer: &'a [u8]) -> Result<&'a [u8], Infallible>
pub fn finish(&mut self, output: &mut [u8]) -> Result<(), Infallible>
Auto Trait Implementations§
impl<'d> Freeze for Sha<'d>
impl<'d> RefUnwindSafe for Sha<'d>
impl<'d> Send for Sha<'d>
impl<'d> Sync for Sha<'d>
impl<'d> Unpin for Sha<'d>
impl<'d> !UnwindSafe for Sha<'d>
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