[][src]Struct jsonwebkey::ByteArray

pub struct ByteArray<const N: usize>(pub [u8; N]);

A zeroizing-on-drop container for a [u8; N] that deserializes from base64.

Implementations

impl<const N: usize> ByteArray<N>[src]

pub fn try_from_slice(bytes: impl AsRef<[u8]>) -> Result<Self, String>[src]

Trait Implementations

impl<const N: usize> AsRef<[u8; N]> for ByteArray<N>[src]

impl<const N: usize> Clone for ByteArray<N>[src]

impl<const N: usize> Debug for ByteArray<N>[src]

impl<const N: usize> Deref for ByteArray<N>[src]

type Target = [u8; N]

The resulting type after dereferencing.

impl<'de, const N: usize> Deserialize<'de> for ByteArray<N>[src]

impl<const N: usize> Drop for ByteArray<N>[src]

impl<const N: usize> Eq for ByteArray<N>[src]

impl<const N: usize> From<[u8; N]> for ByteArray<N>[src]

impl<const N: usize> PartialEq<ByteArray<N>> for ByteArray<N>[src]

impl<const N: usize> Serialize for ByteArray<N>[src]

impl<const N: usize> Zeroize for ByteArray<N>[src]

Auto Trait Implementations

impl<const N: usize> RefUnwindSafe for ByteArray<N>

impl<const N: usize> Send for ByteArray<N>

impl<const N: usize> Sync for ByteArray<N>

impl<const N: usize> Unpin for ByteArray<N>

impl<const N: usize> UnwindSafe for ByteArray<N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]