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