pub enum FilterUpdate<Id> {
Add(Id),
Remove(Id),
Replace(Vec<Id>),
Clear,
}Expand description
The control-plane update algebra for an IdSet filter, folded in through
FilterControl::apply. Add/Remove grow or shrink the live set
incrementally; Replace/Clear swap it wholesale. Serializable, so it is
also the wire form of a control message (“add id X” over the network).
Variants§
Trait Implementations§
Source§impl<Id: Clone> Clone for FilterUpdate<Id>
impl<Id: Clone> Clone for FilterUpdate<Id>
Source§impl<Id: Debug> Debug for FilterUpdate<Id>
impl<Id: Debug> Debug for FilterUpdate<Id>
Source§impl<'de, Id> Deserialize<'de> for FilterUpdate<Id>where
Id: Deserialize<'de>,
impl<'de, Id> Deserialize<'de> for FilterUpdate<Id>where
Id: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<Id: Eq> Eq for FilterUpdate<Id>
Source§impl<Id: PartialEq> PartialEq for FilterUpdate<Id>
impl<Id: PartialEq> PartialEq for FilterUpdate<Id>
Source§impl<Id> Serialize for FilterUpdate<Id>where
Id: Serialize,
impl<Id> Serialize for FilterUpdate<Id>where
Id: Serialize,
impl<Id: PartialEq> StructuralPartialEq for FilterUpdate<Id>
Auto Trait Implementations§
impl<Id> Freeze for FilterUpdate<Id>
impl<Id> RefUnwindSafe for FilterUpdate<Id>
impl<Id> Send for FilterUpdate<Id>
impl<Id> Sync for FilterUpdate<Id>
impl<Id> Unpin for FilterUpdate<Id>
impl<Id> UnsafeUnpin for FilterUpdate<Id>
impl<Id> UnwindSafe for FilterUpdate<Id>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.