iroh_rpc_types

Type Alias RpcResult

Source
pub type RpcResult<T> = Result<T, RpcError>;

Aliased Type§

enum RpcResult<T> {
    Ok(T),
    Err(RpcError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(RpcError)

Contains the error value

Trait Implementations§

Source§

impl TryFrom<GatewayResponse> for RpcResult<()>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<()>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<BitswapResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<ExternalAddrsResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<FetchProvidersDhtResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GetListeningAddrsResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GetPeersResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubAllPeersResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubPeersResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubPublishResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubSubscribeResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubTopicsResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<GossipsubUnsubscribeResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<ListenersResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<LocalPeerIdResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<P2pResponse> for RpcResult<LookupResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<StoreResponse> for RpcResult<()>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<StoreResponse> for RpcResult<GetLinksResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<StoreResponse> for RpcResult<GetResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<StoreResponse> for RpcResult<GetSizeResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.
Source§

impl TryFrom<StoreResponse> for RpcResult<HasResponse>

Source§

type Error = &'static str

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

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

Performs the conversion.