pub struct SecureOperationBuilder<T> { /* private fields */ }
Expand description
Builder pattern for secure operations
This pattern allows for composing operations while maintaining security guarantees at each step.
Implementations§
Source§impl<T> SecureOperationBuilder<T>
impl<T> SecureOperationBuilder<T>
Sourcepub fn with_cleanup<F>(self, cleanup: F) -> Self
pub fn with_cleanup<F>(self, cleanup: F) -> Self
Add a cleanup function to be called when the operation completes
Sourcepub fn transform<U, F>(self, f: F) -> SecureOperationBuilder<U>where
F: FnOnce(T) -> U,
pub fn transform<U, F>(self, f: F) -> SecureOperationBuilder<U>where
F: FnOnce(T) -> U,
Transform the state
Auto Trait Implementations§
impl<T> Freeze for SecureOperationBuilder<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SecureOperationBuilder<T>
impl<T> !Send for SecureOperationBuilder<T>
impl<T> !Sync for SecureOperationBuilder<T>
impl<T> Unpin for SecureOperationBuilder<T>where
T: Unpin,
impl<T> !UnwindSafe for SecureOperationBuilder<T>
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