Trait cipher::stream_core::StreamClosure

source ·
pub trait StreamClosure: BlockSizeUser {
    // Required method
    fn call<B: StreamBackend<BlockSize = Self::BlockSize>>(
        self,
        backend: &mut B,
    );
}
Expand description

Trait for StreamBackend users.

This trait is used to define rank-2 closures.

Required Methods§

source

fn call<B: StreamBackend<BlockSize = Self::BlockSize>>(self, backend: &mut B)

Execute closure with the provided stream cipher backend.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, BS: ArrayLength<u8>> StreamClosure for WriteBlockCtx<'a, BS>

source§

impl<'a, BS: ArrayLength<u8>> StreamClosure for WriteBlocksCtx<'a, BS>

source§

impl<'inp, 'out, BS: ArrayLength<u8>> StreamClosure for ApplyBlockCtx<'inp, 'out, BS>

source§

impl<'inp, 'out, BS: ArrayLength<u8>> StreamClosure for ApplyBlocksCtx<'inp, 'out, BS>