pub enum PaddedData<'a, BlockSize: ArraySize> {
Pad {
blocks: &'a [Array<u8, BlockSize>],
tail_block: Array<u8, BlockSize>,
},
NoPad {
blocks: &'a [Array<u8, BlockSize>],
},
Error,
}Expand description
Padded data split into blocks with detached last block returned by Padding::pad_detached.
Variants§
Pad
Message split into blocks with detached and padded tail_block.
Fields
NoPad
NoPadding or ZeroPadding were used on a message which does not require any padding.
Error
NoPadding was used on a message with size not multiple of the block size.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, BlockSize> Freeze for PaddedData<'a, BlockSize>
impl<'a, BlockSize> RefUnwindSafe for PaddedData<'a, BlockSize>
impl<'a, BlockSize> Send for PaddedData<'a, BlockSize>
impl<'a, BlockSize> Sync for PaddedData<'a, BlockSize>
impl<'a, BlockSize> Unpin for PaddedData<'a, BlockSize>
impl<'a, BlockSize> UnwindSafe for PaddedData<'a, BlockSize>
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