pub struct BatchExecutor { /* private fields */ }Expand description
Batch executor with transaction support
Implementations§
Source§impl BatchExecutor
impl BatchExecutor
Sourcepub fn new(manager: Arc<VaultManager>, temp_dir: PathBuf) -> Self
pub fn new(manager: Arc<VaultManager>, temp_dir: PathBuf) -> Self
Create a new batch executor
Sourcepub async fn validate(&self, ops: &[BatchOperation]) -> Result<()>
pub async fn validate(&self, ops: &[BatchOperation]) -> Result<()>
Validate batch operations before execution
Sourcepub async fn execute(&self, ops: Vec<BatchOperation>) -> Result<BatchResult>
pub async fn execute(&self, ops: Vec<BatchOperation>) -> Result<BatchResult>
Execute batch operations atomically
Auto Trait Implementations§
impl Freeze for BatchExecutor
impl !RefUnwindSafe for BatchExecutor
impl Send for BatchExecutor
impl Sync for BatchExecutor
impl Unpin for BatchExecutor
impl !UnwindSafe for BatchExecutor
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