pub struct Change {
pub owner: Owner,
pub kind: ChangeKind,
pub object: String,
pub iface: Option<String>,
pub steers: bool,
pub removed: bool,
}Expand description
One attributed change: object names what was touched (an interface, a
route prefix, a rule, an nft table or chain), so a later removal of the
same object undoes it. steers is whether it currently steers traffic
(§12d: a default or all-covering route, a catch-all rule, DNS on the
unit’s interface, the system proxy, a dropping or redirecting firewall
rule); an interface by itself steers nothing.
Fields§
§owner: Owner§kind: ChangeKind§object: String§iface: Option<String>The interface the object belongs to or routes out of, if any.
steers: bool§removed: boolThe object was deleted (a route or rule removed, an interface gone).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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 Eq for Change
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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