pub struct PolicySwitchEvent {
pub old_name: String,
pub new_name: String,
pub switch_id: u64,
}Expand description
Record emitted when the active policy changes.
Fields§
§old_name: StringName of the previously active policy.
new_name: StringName of the newly active policy.
switch_id: u64Monotonic switch counter.
Implementations§
Trait Implementations§
Source§impl Clone for PolicySwitchEvent
impl Clone for PolicySwitchEvent
Source§fn clone(&self) -> PolicySwitchEvent
fn clone(&self) -> PolicySwitchEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PolicySwitchEvent
impl RefUnwindSafe for PolicySwitchEvent
impl Send for PolicySwitchEvent
impl Sync for PolicySwitchEvent
impl Unpin for PolicySwitchEvent
impl UnsafeUnpin for PolicySwitchEvent
impl UnwindSafe for PolicySwitchEvent
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