pub struct DhtMessage {
pub t: ByteBuf,
pub y: String,
pub q: Option<String>,
pub a: Option<DhtArgs>,
pub r: Option<DhtResponse>,
}Expand description
Decoded KRPC envelope.
Fields§
§t: ByteBufTransaction ID bytes.
y: StringMessage kind (q, r, or e).
q: Option<String>Query method when y == q.
a: Option<DhtArgs>Query arguments.
r: Option<DhtResponse>Response dictionary.
Trait Implementations§
Source§impl Clone for DhtMessage
impl Clone for DhtMessage
Source§fn clone(&self) -> DhtMessage
fn clone(&self) -> DhtMessage
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 DhtMessage
impl Debug for DhtMessage
Source§impl<'de> Deserialize<'de> for DhtMessage
impl<'de> Deserialize<'de> for DhtMessage
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 DhtMessage
impl RefUnwindSafe for DhtMessage
impl Send for DhtMessage
impl Sync for DhtMessage
impl Unpin for DhtMessage
impl UnsafeUnpin for DhtMessage
impl UnwindSafe for DhtMessage
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