pub struct Mac(_);
Expand description
The output type for the SAS MAC calculation.
Implementations
sourceimpl Mac
impl Mac
sourcepub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
Get the byte slice of the 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 RefUnwindSafe for Mac
impl Send for Mac
impl Sync for Mac
impl Unpin for Mac
impl UnwindSafe for Mac
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more