pub struct PeerDiff<'a> {
pub old: Option<&'a PeerConfig>,
pub new: Option<&'a Peer>,
/* private fields */
}Expand description
Encompasses the logic for comparing the peer configuration currently on the WireGuard interface to a (potentially) more current peer configuration from the innernet server.
Fields§
§old: Option<&'a PeerConfig>§new: Option<&'a Peer>Implementations§
Trait Implementations§
Source§impl From<PeerDiff<'_>> for PeerConfigBuilder
impl From<PeerDiff<'_>> for PeerConfigBuilder
impl<'a> Eq for PeerDiff<'a>
impl<'a> StructuralPartialEq for PeerDiff<'a>
Auto Trait Implementations§
impl<'a> Freeze for PeerDiff<'a>
impl<'a> RefUnwindSafe for PeerDiff<'a>
impl<'a> Send for PeerDiff<'a>
impl<'a> Sync for PeerDiff<'a>
impl<'a> Unpin for PeerDiff<'a>
impl<'a> UnwindSafe for PeerDiff<'a>
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,
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.