pub enum DhtWatchEvent {
ValueStored {
key: Key,
value: Vec<u8>,
},
ValueUpdated {
key: Key,
old_value: Vec<u8>,
new_value: Vec<u8>,
},
ValueDeleted {
key: Key,
},
KeyExpired {
key: Key,
},
}Expand description
DHT key watch events
Variants§
ValueStored
Value stored at key
ValueUpdated
Value updated at key
ValueDeleted
Value deleted at key
KeyExpired
Key expired
Trait Implementations§
Source§impl Clone for DhtWatchEvent
impl Clone for DhtWatchEvent
Source§fn clone(&self) -> DhtWatchEvent
fn clone(&self) -> DhtWatchEvent
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 moreSource§impl Debug for DhtWatchEvent
impl Debug for DhtWatchEvent
Source§impl<'de> Deserialize<'de> for DhtWatchEvent
impl<'de> Deserialize<'de> for DhtWatchEvent
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
Auto Trait Implementations§
impl Freeze for DhtWatchEvent
impl RefUnwindSafe for DhtWatchEvent
impl Send for DhtWatchEvent
impl Sync for DhtWatchEvent
impl Unpin for DhtWatchEvent
impl UnwindSafe for DhtWatchEvent
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