Enum iroh_rpc_types::p2p::P2pResponse
source · pub enum P2pResponse {
Show 17 variants
Watch(WatchResponse),
Version(VersionResponse),
FetchBitswap(RpcResult<BitswapResponse>),
FetchProviderDht(RpcResult<FetchProvidersDhtResponse>),
GetListeningAddrs(RpcResult<GetListeningAddrsResponse>),
GetPeers(RpcResult<GetPeersResponse>),
Lookup(RpcResult<LookupResponse>),
GossipsubPeers(RpcResult<GossipsubPeersResponse>),
GossipsubAllPeers(RpcResult<GossipsubAllPeersResponse>),
GossipsubPublish(RpcResult<GossipsubPublishResponse>),
GossipsubSubscribe(RpcResult<GossipsubSubscribeResponse>),
GossipsubTopics(RpcResult<GossipsubTopicsResponse>),
GossipsubUnsubscribe(RpcResult<GossipsubUnsubscribeResponse>),
LocalPeerId(RpcResult<LocalPeerIdResponse>),
ExternalAddrs(RpcResult<ExternalAddrsResponse>),
Listeners(RpcResult<ListenersResponse>),
UnitResult(RpcResult<()>),
}
Variants§
Watch(WatchResponse)
Version(VersionResponse)
FetchBitswap(RpcResult<BitswapResponse>)
FetchProviderDht(RpcResult<FetchProvidersDhtResponse>)
GetListeningAddrs(RpcResult<GetListeningAddrsResponse>)
GetPeers(RpcResult<GetPeersResponse>)
Lookup(RpcResult<LookupResponse>)
GossipsubPeers(RpcResult<GossipsubPeersResponse>)
GossipsubAllPeers(RpcResult<GossipsubAllPeersResponse>)
GossipsubPublish(RpcResult<GossipsubPublishResponse>)
GossipsubSubscribe(RpcResult<GossipsubSubscribeResponse>)
GossipsubTopics(RpcResult<GossipsubTopicsResponse>)
GossipsubUnsubscribe(RpcResult<GossipsubUnsubscribeResponse>)
LocalPeerId(RpcResult<LocalPeerIdResponse>)
ExternalAddrs(RpcResult<ExternalAddrsResponse>)
Listeners(RpcResult<ListenersResponse>)
UnitResult(RpcResult<()>)
Trait Implementations§
source§impl Debug for P2pResponse
impl Debug for P2pResponse
source§impl<'de> Deserialize<'de> for P2pResponse
impl<'de> Deserialize<'de> for P2pResponse
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
source§impl From<Result<BitswapResponse, RpcError>> for P2pResponse
impl From<Result<BitswapResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<BitswapResponse>) -> P2pResponse
fn from(original: RpcResult<BitswapResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<ExternalAddrsResponse, RpcError>> for P2pResponse
impl From<Result<ExternalAddrsResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<ExternalAddrsResponse>) -> P2pResponse
fn from(original: RpcResult<ExternalAddrsResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<FetchProvidersDhtResponse, RpcError>> for P2pResponse
impl From<Result<FetchProvidersDhtResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<FetchProvidersDhtResponse>) -> P2pResponse
fn from(original: RpcResult<FetchProvidersDhtResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GetListeningAddrsResponse, RpcError>> for P2pResponse
impl From<Result<GetListeningAddrsResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GetListeningAddrsResponse>) -> P2pResponse
fn from(original: RpcResult<GetListeningAddrsResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GetPeersResponse, RpcError>> for P2pResponse
impl From<Result<GetPeersResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GetPeersResponse>) -> P2pResponse
fn from(original: RpcResult<GetPeersResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubAllPeersResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubAllPeersResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubAllPeersResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubAllPeersResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubPeersResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubPeersResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubPeersResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubPeersResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubPublishResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubPublishResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubPublishResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubPublishResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubSubscribeResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubSubscribeResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubSubscribeResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubSubscribeResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubTopicsResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubTopicsResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubTopicsResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubTopicsResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<GossipsubUnsubscribeResponse, RpcError>> for P2pResponse
impl From<Result<GossipsubUnsubscribeResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<GossipsubUnsubscribeResponse>) -> P2pResponse
fn from(original: RpcResult<GossipsubUnsubscribeResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<ListenersResponse, RpcError>> for P2pResponse
impl From<Result<ListenersResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<ListenersResponse>) -> P2pResponse
fn from(original: RpcResult<ListenersResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<LocalPeerIdResponse, RpcError>> for P2pResponse
impl From<Result<LocalPeerIdResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<LocalPeerIdResponse>) -> P2pResponse
fn from(original: RpcResult<LocalPeerIdResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<Result<LookupResponse, RpcError>> for P2pResponse
impl From<Result<LookupResponse, RpcError>> for P2pResponse
source§fn from(original: RpcResult<LookupResponse>) -> P2pResponse
fn from(original: RpcResult<LookupResponse>) -> P2pResponse
Converts to this type from the input type.
source§impl From<VersionResponse> for P2pResponse
impl From<VersionResponse> for P2pResponse
source§fn from(original: VersionResponse) -> P2pResponse
fn from(original: VersionResponse) -> P2pResponse
Converts to this type from the input type.
source§impl From<WatchResponse> for P2pResponse
impl From<WatchResponse> for P2pResponse
source§fn from(original: WatchResponse) -> P2pResponse
fn from(original: WatchResponse) -> P2pResponse
Converts to this type from the input type.