pub struct EditTransaction { /* private fields */ }
Expand description
A helper for managing the editing of rewrite rules.
Implementations§
Source§impl EditTransaction
impl EditTransaction
Sourcepub fn reset_all(&self) -> Result<(), EditTransactionError>
pub fn reset_all(&self) -> Result<(), EditTransactionError>
Removes all dynamically configured rewrite rules, leaving only any statically configured rules.
Sourcepub async fn list_dynamic(&self) -> Result<Vec<Rule>, EditTransactionError>
pub async fn list_dynamic(&self) -> Result<Vec<Rule>, EditTransactionError>
Returns a vector of all dynamic (editable) rewrite rules. The vector will reflect any changes made to the rewrite rules so far in this transaction.
Auto Trait Implementations§
impl Freeze for EditTransaction
impl !RefUnwindSafe for EditTransaction
impl Send for EditTransaction
impl Sync for EditTransaction
impl Unpin for EditTransaction
impl !UnwindSafe for EditTransaction
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