Struct iroh_rpc_client::client::Client
source · pub struct Client {
pub gateway: Option<GatewayClient>,
/* private fields */
}
Fields§
§gateway: Option<GatewayClient>
Implementations§
source§impl Client
impl Client
pub async fn new(cfg: Config) -> Result<Self>
pub fn try_p2p(&self) -> Result<P2pClient>
pub fn try_gateway(&self) -> Result<&GatewayClient>
pub fn try_store(&self) -> Result<StoreClient>
pub async fn check(&self) -> ClientStatus
pub async fn watch(self) -> impl Stream<Item = ClientStatus>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request