pub struct FindNodeResponse {
pub target: NodeId,
pub closer_nodes: CloserNodes,
}Expand description
Response to a FindNodeRequest (ADR 022 §Message Types).
Responders MUST NOT emit more than MAX_CLOSER_NODES entries; oversize
values fail decode at the wire boundary.
Fields§
§target: NodeIdEchoes the requested target.
closer_nodes: CloserNodesK closest NodeIds to target from the responder’s routing table.
CloserNodes enforces the MAX_CLOSER_NODES cap.
Trait Implementations§
Source§impl Clone for FindNodeResponse
impl Clone for FindNodeResponse
Source§impl Debug for FindNodeResponse
impl Debug for FindNodeResponse
Source§impl<'de> Deserialize<'de> for FindNodeResponse
impl<'de> Deserialize<'de> for FindNodeResponse
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 FindNodeResponse
Source§impl PartialEq for FindNodeResponse
impl PartialEq for FindNodeResponse
Source§impl Serialize for FindNodeResponse
impl Serialize for FindNodeResponse
impl StructuralPartialEq for FindNodeResponse
Auto Trait Implementations§
impl Freeze for FindNodeResponse
impl RefUnwindSafe for FindNodeResponse
impl Send for FindNodeResponse
impl Sync for FindNodeResponse
impl Unpin for FindNodeResponse
impl UnsafeUnpin for FindNodeResponse
impl UnwindSafe for FindNodeResponse
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