Enum iroh_rpc_types::p2p::P2pRequest
source · pub enum P2pRequest {
Show 28 variants
Watch(WatchRequest),
Version(VersionRequest),
Shutdown(ShutdownRequest),
FetchBitswap(BitswapRequest),
FetchProviderDht(FetchProvidersDhtRequest),
StopSessionBitswap(StopSessionBitswapRequest),
NotifyNewBlocksBitswap(NotifyNewBlocksBitswapRequest),
GetListeningAddrs(GetListeningAddrsRequest),
GetPeers(GetPeersRequest),
PeerConnect(ConnectRequest),
PeerConnectByPeerId(ConnectByPeerIdRequest),
PeerDisconnect(DisconnectRequest),
Lookup(LookupRequest),
LookupLocal(LookupLocalRequest),
GossipsubAddExplicitPeer(GossipsubAddExplicitPeerRequest),
GossipsubAllMeshPeers(GossipsubAllMeshPeersRequest),
GossipsubAllPeers(GossipsubAllPeersRequest),
GossipsubMeshPeers(GossipsubMeshPeersRequest),
GossipsubPublish(GossipsubPublishRequest),
GossipsubRemoveExplicitPeer(GossipsubRemoveExplicitPeerRequest),
GossipsubSubscribe(GossipsubSubscribeRequest),
GossipsubTopics(GossipsubTopicsRequest),
GossipsubUnsubscribe(GossipsubUnsubscribeRequest),
StartProviding(StartProvidingRequest),
StopProviding(StopProvidingRequest),
LocalPeerId(LocalPeerIdRequest),
ExternalAddrs(ExternalAddrsRequest),
Listeners(ListenersRequest),
}
Variants§
Watch(WatchRequest)
Version(VersionRequest)
Shutdown(ShutdownRequest)
FetchBitswap(BitswapRequest)
FetchProviderDht(FetchProvidersDhtRequest)
StopSessionBitswap(StopSessionBitswapRequest)
NotifyNewBlocksBitswap(NotifyNewBlocksBitswapRequest)
GetListeningAddrs(GetListeningAddrsRequest)
GetPeers(GetPeersRequest)
PeerConnect(ConnectRequest)
PeerConnectByPeerId(ConnectByPeerIdRequest)
PeerDisconnect(DisconnectRequest)
Lookup(LookupRequest)
LookupLocal(LookupLocalRequest)
GossipsubAddExplicitPeer(GossipsubAddExplicitPeerRequest)
GossipsubAllMeshPeers(GossipsubAllMeshPeersRequest)
GossipsubAllPeers(GossipsubAllPeersRequest)
GossipsubMeshPeers(GossipsubMeshPeersRequest)
GossipsubPublish(GossipsubPublishRequest)
GossipsubRemoveExplicitPeer(GossipsubRemoveExplicitPeerRequest)
GossipsubSubscribe(GossipsubSubscribeRequest)
GossipsubTopics(GossipsubTopicsRequest)
GossipsubUnsubscribe(GossipsubUnsubscribeRequest)
StartProviding(StartProvidingRequest)
StopProviding(StopProvidingRequest)
LocalPeerId(LocalPeerIdRequest)
ExternalAddrs(ExternalAddrsRequest)
Listeners(ListenersRequest)
Trait Implementations§
source§impl Debug for P2pRequest
impl Debug for P2pRequest
source§impl<'de> Deserialize<'de> for P2pRequest
impl<'de> Deserialize<'de> for P2pRequest
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<BitswapRequest> for P2pRequest
impl From<BitswapRequest> for P2pRequest
source§fn from(original: BitswapRequest) -> P2pRequest
fn from(original: BitswapRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<ConnectByPeerIdRequest> for P2pRequest
impl From<ConnectByPeerIdRequest> for P2pRequest
source§fn from(original: ConnectByPeerIdRequest) -> P2pRequest
fn from(original: ConnectByPeerIdRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<ConnectRequest> for P2pRequest
impl From<ConnectRequest> for P2pRequest
source§fn from(original: ConnectRequest) -> P2pRequest
fn from(original: ConnectRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<DisconnectRequest> for P2pRequest
impl From<DisconnectRequest> for P2pRequest
source§fn from(original: DisconnectRequest) -> P2pRequest
fn from(original: DisconnectRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<ExternalAddrsRequest> for P2pRequest
impl From<ExternalAddrsRequest> for P2pRequest
source§fn from(original: ExternalAddrsRequest) -> P2pRequest
fn from(original: ExternalAddrsRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<FetchProvidersDhtRequest> for P2pRequest
impl From<FetchProvidersDhtRequest> for P2pRequest
source§fn from(original: FetchProvidersDhtRequest) -> P2pRequest
fn from(original: FetchProvidersDhtRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GetListeningAddrsRequest> for P2pRequest
impl From<GetListeningAddrsRequest> for P2pRequest
source§fn from(original: GetListeningAddrsRequest) -> P2pRequest
fn from(original: GetListeningAddrsRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GetPeersRequest> for P2pRequest
impl From<GetPeersRequest> for P2pRequest
source§fn from(original: GetPeersRequest) -> P2pRequest
fn from(original: GetPeersRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubAddExplicitPeerRequest> for P2pRequest
impl From<GossipsubAddExplicitPeerRequest> for P2pRequest
source§fn from(original: GossipsubAddExplicitPeerRequest) -> P2pRequest
fn from(original: GossipsubAddExplicitPeerRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubAllMeshPeersRequest> for P2pRequest
impl From<GossipsubAllMeshPeersRequest> for P2pRequest
source§fn from(original: GossipsubAllMeshPeersRequest) -> P2pRequest
fn from(original: GossipsubAllMeshPeersRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubAllPeersRequest> for P2pRequest
impl From<GossipsubAllPeersRequest> for P2pRequest
source§fn from(original: GossipsubAllPeersRequest) -> P2pRequest
fn from(original: GossipsubAllPeersRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubMeshPeersRequest> for P2pRequest
impl From<GossipsubMeshPeersRequest> for P2pRequest
source§fn from(original: GossipsubMeshPeersRequest) -> P2pRequest
fn from(original: GossipsubMeshPeersRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubPublishRequest> for P2pRequest
impl From<GossipsubPublishRequest> for P2pRequest
source§fn from(original: GossipsubPublishRequest) -> P2pRequest
fn from(original: GossipsubPublishRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubRemoveExplicitPeerRequest> for P2pRequest
impl From<GossipsubRemoveExplicitPeerRequest> for P2pRequest
source§fn from(original: GossipsubRemoveExplicitPeerRequest) -> P2pRequest
fn from(original: GossipsubRemoveExplicitPeerRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubSubscribeRequest> for P2pRequest
impl From<GossipsubSubscribeRequest> for P2pRequest
source§fn from(original: GossipsubSubscribeRequest) -> P2pRequest
fn from(original: GossipsubSubscribeRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubTopicsRequest> for P2pRequest
impl From<GossipsubTopicsRequest> for P2pRequest
source§fn from(original: GossipsubTopicsRequest) -> P2pRequest
fn from(original: GossipsubTopicsRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<GossipsubUnsubscribeRequest> for P2pRequest
impl From<GossipsubUnsubscribeRequest> for P2pRequest
source§fn from(original: GossipsubUnsubscribeRequest) -> P2pRequest
fn from(original: GossipsubUnsubscribeRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<ListenersRequest> for P2pRequest
impl From<ListenersRequest> for P2pRequest
source§fn from(original: ListenersRequest) -> P2pRequest
fn from(original: ListenersRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<LocalPeerIdRequest> for P2pRequest
impl From<LocalPeerIdRequest> for P2pRequest
source§fn from(original: LocalPeerIdRequest) -> P2pRequest
fn from(original: LocalPeerIdRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<LookupLocalRequest> for P2pRequest
impl From<LookupLocalRequest> for P2pRequest
source§fn from(original: LookupLocalRequest) -> P2pRequest
fn from(original: LookupLocalRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<LookupRequest> for P2pRequest
impl From<LookupRequest> for P2pRequest
source§fn from(original: LookupRequest) -> P2pRequest
fn from(original: LookupRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<NotifyNewBlocksBitswapRequest> for P2pRequest
impl From<NotifyNewBlocksBitswapRequest> for P2pRequest
source§fn from(original: NotifyNewBlocksBitswapRequest) -> P2pRequest
fn from(original: NotifyNewBlocksBitswapRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<ShutdownRequest> for P2pRequest
impl From<ShutdownRequest> for P2pRequest
source§fn from(original: ShutdownRequest) -> P2pRequest
fn from(original: ShutdownRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<StartProvidingRequest> for P2pRequest
impl From<StartProvidingRequest> for P2pRequest
source§fn from(original: StartProvidingRequest) -> P2pRequest
fn from(original: StartProvidingRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<StopProvidingRequest> for P2pRequest
impl From<StopProvidingRequest> for P2pRequest
source§fn from(original: StopProvidingRequest) -> P2pRequest
fn from(original: StopProvidingRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<StopSessionBitswapRequest> for P2pRequest
impl From<StopSessionBitswapRequest> for P2pRequest
source§fn from(original: StopSessionBitswapRequest) -> P2pRequest
fn from(original: StopSessionBitswapRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<VersionRequest> for P2pRequest
impl From<VersionRequest> for P2pRequest
source§fn from(original: VersionRequest) -> P2pRequest
fn from(original: VersionRequest) -> P2pRequest
Converts to this type from the input type.
source§impl From<WatchRequest> for P2pRequest
impl From<WatchRequest> for P2pRequest
source§fn from(original: WatchRequest) -> P2pRequest
fn from(original: WatchRequest) -> P2pRequest
Converts to this type from the input type.