pub struct StreamGenerator<CA: CipherAlgorithmTrait + IVKeyNewTrait> { /* private fields */ }Expand description
StreamGenerator是ciftl自己实现的一个流生成器,具体逻辑是传入一个实现了CipherAlgorithmTrait和 IVKeyNewTrait的密码算法结构体,然后通过调用密码算法的加密函数实现自定义的字符串加密器
Trait Implementations§
Source§impl<CA: CipherAlgorithmTrait + IVKeyNewTrait> IVKeyNewTrait for StreamGenerator<CA>
impl<CA: CipherAlgorithmTrait + IVKeyNewTrait> IVKeyNewTrait for StreamGenerator<CA>
Source§impl<CA: CipherAlgorithmTrait + IVKeyNewTrait> StreamGeneratorTrait for StreamGenerator<CA>
impl<CA: CipherAlgorithmTrait + IVKeyNewTrait> StreamGeneratorTrait for StreamGenerator<CA>
Auto Trait Implementations§
impl<CA> Freeze for StreamGenerator<CA>where
CA: Freeze,
impl<CA> RefUnwindSafe for StreamGenerator<CA>where
CA: RefUnwindSafe,
impl<CA> Send for StreamGenerator<CA>where
CA: Send,
impl<CA> Sync for StreamGenerator<CA>where
CA: Sync,
impl<CA> Unpin for StreamGenerator<CA>where
CA: Unpin,
impl<CA> UnwindSafe for StreamGenerator<CA>where
CA: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more