pub struct EditSet { /* private fields */ }Expand description
Up to MAX_EDITS edits on distinct keys, in key order.
Implementations§
Source§impl EditSet
impl EditSet
Sourcepub fn new(edits: Vec<Edit>) -> Result<EditSet, EditError>
pub fn new(edits: Vec<Edit>) -> Result<EditSet, EditError>
Build a set, sorted by key.
Refuses two edits on one key, more than MAX_EDITS edits, and a
list operation on anything but Key::NetworkBlacklist.
Sourcepub fn apply(&self, params: &mut dyn Params, caller: &dyn Params) -> Applied
pub fn apply(&self, params: &mut dyn Params, caller: &dyn Params) -> Applied
Write the edits onto params, leaving every field the caller set.
caller is the request as the caller left it, before the router or
the plan wrote anything. A Set is written only where the caller’s
field is unset. An idle wait of zero writes nothing, because there is
no wait to send. A list operation on the blacklist is left out when
the caller set either network list, since the caller’s whitelist wins
over any blacklist entry and an edit must not argue with it.
Trait Implementations§
impl Eq for EditSet
impl StructuralPartialEq for EditSet
Auto Trait Implementations§
impl Forget for EditSet
impl Freeze for EditSet
impl Move for EditSet
impl RefUnwindSafe for EditSet
impl Send for EditSet
impl Sync for EditSet
impl Unpin for EditSet
impl UnsafeUnpin for EditSet
impl UnwindSafe for EditSet
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