iroh_rpc_types::p2p

Enum 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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for P2pRequest

Source§

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

Source§

fn from(original: BitswapRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<ConnectByPeerIdRequest> for P2pRequest

Source§

fn from(original: ConnectByPeerIdRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<ConnectRequest> for P2pRequest

Source§

fn from(original: ConnectRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<DisconnectRequest> for P2pRequest

Source§

fn from(original: DisconnectRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<ExternalAddrsRequest> for P2pRequest

Source§

fn from(original: ExternalAddrsRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<FetchProvidersDhtRequest> for P2pRequest

Source§

fn from(original: FetchProvidersDhtRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GetListeningAddrsRequest> for P2pRequest

Source§

fn from(original: GetListeningAddrsRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GetPeersRequest> for P2pRequest

Source§

fn from(original: GetPeersRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubAddExplicitPeerRequest> for P2pRequest

Source§

fn from(original: GossipsubAddExplicitPeerRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubAllMeshPeersRequest> for P2pRequest

Source§

fn from(original: GossipsubAllMeshPeersRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubAllPeersRequest> for P2pRequest

Source§

fn from(original: GossipsubAllPeersRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubMeshPeersRequest> for P2pRequest

Source§

fn from(original: GossipsubMeshPeersRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubPublishRequest> for P2pRequest

Source§

fn from(original: GossipsubPublishRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubRemoveExplicitPeerRequest> for P2pRequest

Source§

fn from(original: GossipsubRemoveExplicitPeerRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubSubscribeRequest> for P2pRequest

Source§

fn from(original: GossipsubSubscribeRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubTopicsRequest> for P2pRequest

Source§

fn from(original: GossipsubTopicsRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<GossipsubUnsubscribeRequest> for P2pRequest

Source§

fn from(original: GossipsubUnsubscribeRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<ListenersRequest> for P2pRequest

Source§

fn from(original: ListenersRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<LocalPeerIdRequest> for P2pRequest

Source§

fn from(original: LocalPeerIdRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<LookupLocalRequest> for P2pRequest

Source§

fn from(original: LookupLocalRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<LookupRequest> for P2pRequest

Source§

fn from(original: LookupRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<NotifyNewBlocksBitswapRequest> for P2pRequest

Source§

fn from(original: NotifyNewBlocksBitswapRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<ShutdownRequest> for P2pRequest

Source§

fn from(original: ShutdownRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<StartProvidingRequest> for P2pRequest

Source§

fn from(original: StartProvidingRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<StopProvidingRequest> for P2pRequest

Source§

fn from(original: StopProvidingRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<StopSessionBitswapRequest> for P2pRequest

Source§

fn from(original: StopSessionBitswapRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<VersionRequest> for P2pRequest

Source§

fn from(original: VersionRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl From<WatchRequest> for P2pRequest

Source§

fn from(original: WatchRequest) -> P2pRequest

Converts to this type from the input type.
Source§

impl Serialize for P2pRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<P2pRequest> for BitswapRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for ConnectByPeerIdRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for ConnectRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for DisconnectRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for ExternalAddrsRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for FetchProvidersDhtRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GetListeningAddrsRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GetPeersRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubAddExplicitPeerRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubAllMeshPeersRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubAllPeersRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubMeshPeersRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubPublishRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubRemoveExplicitPeerRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubSubscribeRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubTopicsRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for GossipsubUnsubscribeRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for ListenersRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for LocalPeerIdRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for LookupLocalRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for LookupRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for NotifyNewBlocksBitswapRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for ShutdownRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for StartProvidingRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for StopProvidingRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for StopSessionBitswapRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for VersionRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<P2pRequest> for WatchRequest

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(value: P2pRequest) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,