pub struct DhtResponse {
pub id: Option<ByteBuf>,
pub nodes: Option<ByteBuf>,
pub nodes6: Option<ByteBuf>,
pub values: Option<Vec<ByteBuf>>,
}Expand description
Supported BEP-5 response fields.
Fields§
§id: Option<ByteBuf>Responder node ID.
nodes: Option<ByteBuf>Compact IPv4 node tuples.
nodes6: Option<ByteBuf>Compact IPv6 node tuples.
values: Option<Vec<ByteBuf>>Compact Peer endpoints returned by get_peers.
Trait Implementations§
Source§impl Clone for DhtResponse
impl Clone for DhtResponse
Source§fn clone(&self) -> DhtResponse
fn clone(&self) -> DhtResponse
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 DhtResponse
impl Debug for DhtResponse
Source§impl<'de> Deserialize<'de> for DhtResponse
impl<'de> Deserialize<'de> for DhtResponse
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 DhtResponse
impl RefUnwindSafe for DhtResponse
impl Send for DhtResponse
impl Sync for DhtResponse
impl Unpin for DhtResponse
impl UnsafeUnpin for DhtResponse
impl UnwindSafe for DhtResponse
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