[][src]Struct devolutions_crypto::Header

pub struct Header<M> where
    M: HeaderType
{ pub signature: u16, pub data_type: DataType, pub data_subtype: M::Subtype, pub version: M::Version, }

Fields

signature: u16data_type: DataTypedata_subtype: M::Subtypeversion: M::Version

Methods

impl Header<()>[src]

pub fn len() -> usize[src]

Trait Implementations

impl<M: Clone> Clone for Header<M> where
    M: HeaderType,
    M::Subtype: Clone,
    M::Version: Clone
[src]

impl<M: Debug> Debug for Header<M> where
    M: HeaderType,
    M::Subtype: Debug,
    M::Version: Debug
[src]

impl<M> Default for Header<M> where
    M: HeaderType
[src]

impl<M> From<Header<M>> for Vec<u8> where
    M: HeaderType
[src]

impl<'_, M> TryFrom<&'_ [u8]> for Header<M> where
    M: HeaderType
[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<M> RefUnwindSafe for Header<M> where
    <M as HeaderType>::Subtype: RefUnwindSafe,
    <M as HeaderType>::Version: RefUnwindSafe

impl<M> Send for Header<M> where
    <M as HeaderType>::Subtype: Send,
    <M as HeaderType>::Version: Send

impl<M> Sync for Header<M> where
    <M as HeaderType>::Subtype: Sync,
    <M as HeaderType>::Version: Sync

impl<M> Unpin for Header<M> where
    <M as HeaderType>::Subtype: Unpin,
    <M as HeaderType>::Version: Unpin

impl<M> UnwindSafe for Header<M> where
    <M as HeaderType>::Subtype: UnwindSafe,
    <M as HeaderType>::Version: UnwindSafe

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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,