pub enum EditTransactionRequest {
ListDynamic {
iterator: ServerEnd<RuleIteratorMarker>,
control_handle: EditTransactionControlHandle,
},
ResetAll {
control_handle: EditTransactionControlHandle,
},
Add {
rule: Rule,
responder: EditTransactionAddResponder,
},
Commit {
responder: EditTransactionCommitResponder,
},
}
Expand description
A unit of editing for rewrite rules.
Variants§
ListDynamic
Returns an iterator over all dynamic (editable) rewrite rules. The iterator will reflect any changes made to the rewrite rules so far in this transaction.
- request
iterator
a request for an iterator.
ResetAll
Removes all dynamically configured rewrite rules, leaving only any statically configured rules.
Fields
§
control_handle: EditTransactionControlHandle
Add
Adds a rewrite rule with highest priority. If rule
already exists, this
API will prioritize it over other rules.
- request
rule
the rewrite rule to persist.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_INVALID_ARGS
ifurl
is not a validfuchsia-pkg://
URL. Seefuchsia-pkg URL
.
Commit
Commits this transaction, or detect another transaction that committed before this one.
- error a zx_status value indicating failure. One of the following:
ZX_ERR_UNAVAILABLE
if another transaction committed before this one.ZX_ERR_ACCESS_DENIED
if editing dynamic rewrite rules is permanently disabled.
Fields
§
responder: EditTransactionCommitResponder
Implementations§
Source§impl EditTransactionRequest
impl EditTransactionRequest
pub fn into_list_dynamic( self, ) -> Option<(ServerEnd<RuleIteratorMarker>, EditTransactionControlHandle)>
pub fn into_reset_all(self) -> Option<EditTransactionControlHandle>
pub fn into_add(self) -> Option<(Rule, EditTransactionAddResponder)>
pub fn into_commit(self) -> Option<EditTransactionCommitResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EditTransactionRequest
impl !RefUnwindSafe for EditTransactionRequest
impl Send for EditTransactionRequest
impl Sync for EditTransactionRequest
impl Unpin for EditTransactionRequest
impl !UnwindSafe for EditTransactionRequest
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