Struct Output

Source
pub struct Output<C, const STEP: u64>
where C: Config,
{ pub sender: Cipher<C, STEP, true>, pub receiver: Cipher<C, STEP, false>, pub hash: GenericArray<u8, <<C as Config>::MixHash as MixHash>::L>, }

Fields§

§sender: Cipher<C, STEP, true>§receiver: Cipher<C, STEP, false>§hash: GenericArray<u8, <<C as Config>::MixHash as MixHash>::L>

Auto Trait Implementations§

§

impl<C, const STEP: u64> Freeze for Output<C, STEP>
where <<<C as Config>::MixHash as MixHash>::L as ArrayLength<u8>>::ArrayType: Freeze, <C as Config>::Aead: Freeze,

§

impl<C, const STEP: u64> RefUnwindSafe for Output<C, STEP>
where <<<C as Config>::MixHash as MixHash>::L as ArrayLength<u8>>::ArrayType: RefUnwindSafe, <C as Config>::Aead: RefUnwindSafe,

§

impl<C, const STEP: u64> Send for Output<C, STEP>
where <C as Config>::Aead: Send,

§

impl<C, const STEP: u64> Sync for Output<C, STEP>
where <C as Config>::Aead: Sync,

§

impl<C, const STEP: u64> Unpin for Output<C, STEP>
where <<<C as Config>::MixHash as MixHash>::L as ArrayLength<u8>>::ArrayType: Unpin, <C as Config>::Aead: Unpin,

§

impl<C, const STEP: u64> UnwindSafe for Output<C, STEP>
where <<<C as Config>::MixHash as MixHash>::L as ArrayLength<u8>>::ArrayType: UnwindSafe, <C as Config>::Aead: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.