pub struct Builder { /* private fields */ }
Expand description
A builder for encryption and decryption transform operations.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn padding(&mut self, padding: Padding) -> &mut Self
pub fn padding(&mut self, padding: Padding) -> &mut Self
Selects the padding scheme to use.
If not set, an appropriate scheme will be selected for you.
Sourcepub fn mode(&mut self, mode: Mode) -> &mut Self
pub fn mode(&mut self, mode: Mode) -> &mut Self
Selects the encryption mode to use.
If not set, an appropriate mode will be selected for you.
Sourcepub fn iv(&mut self, iv: CFData) -> &mut Self
pub fn iv(&mut self, iv: CFData) -> &mut Self
Sets the initialization vector to use.
If not set, an appropriate value will be supplied for you.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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