Clarify the Response::Nil documentation
This commit is contained in:
parent
af11cc4815
commit
e7176b86da
|
|
@ -9,7 +9,11 @@ use std::sync::Arc;
|
||||||
/// A response to a network request, represented in internal format.
|
/// A response to a network request, represented in internal format.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum Response {
|
pub enum Response {
|
||||||
/// A response with no data.
|
/// Do not send any response to this request.
|
||||||
|
///
|
||||||
|
/// Either:
|
||||||
|
/// * the request does not need a response, or
|
||||||
|
/// * we have no useful data to provide in response to the request.
|
||||||
Nil,
|
Nil,
|
||||||
|
|
||||||
/// A list of peers, used to respond to `GetPeers`.
|
/// A list of peers, used to respond to `GetPeers`.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue