pub struct Mac(/* private fields */);
Expand description
The output type for the SAS MAC calculation.
Implementations§
source§impl Mac
impl Mac
sourcepub fn from_slice(bytes: &[u8]) -> Self
pub fn from_slice(bytes: &[u8]) -> Self
Create a new Mac
object from a byte slice.
sourcepub fn from_base64(mac: &str) -> Result<Self, DecodeError>
pub fn from_base64(mac: &str) -> Result<Self, DecodeError>
Create a new Mac
object from a base64 encoded string.
Auto Trait Implementations§
impl Freeze for Mac
impl RefUnwindSafe for Mac
impl Send for Mac
impl Sync for Mac
impl Unpin for Mac
impl UnwindSafe for Mac
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