pub enum NearbyEnvelope {
Hello {
v: u8,
nonce: Option<String>,
name: Option<String>,
},
Inv {
v: u8,
id: String,
author: Option<String>,
kind: u64,
created_at: u64,
size: u64,
},
Want {
v: u8,
id: String,
},
Event {
v: u8,
event_json: String,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NearbyEnvelope
impl Clone for NearbyEnvelope
Source§fn clone(&self) -> NearbyEnvelope
fn clone(&self) -> NearbyEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NearbyEnvelope
impl Debug for NearbyEnvelope
Source§impl<'de> Deserialize<'de> for NearbyEnvelope
impl<'de> Deserialize<'de> for NearbyEnvelope
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 NearbyEnvelope
Source§impl PartialEq for NearbyEnvelope
impl PartialEq for NearbyEnvelope
Source§fn eq(&self, other: &NearbyEnvelope) -> bool
fn eq(&self, other: &NearbyEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NearbyEnvelope
impl Serialize for NearbyEnvelope
impl StructuralPartialEq for NearbyEnvelope
Auto Trait Implementations§
impl Freeze for NearbyEnvelope
impl RefUnwindSafe for NearbyEnvelope
impl Send for NearbyEnvelope
impl Sync for NearbyEnvelope
impl Unpin for NearbyEnvelope
impl UnsafeUnpin for NearbyEnvelope
impl UnwindSafe for NearbyEnvelope
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