#[non_exhaustive]pub struct IpcClientBuilder;
Expand description
Builder type for [Client
]
Implementations§
Source§impl IpcClientBuilder
impl IpcClientBuilder
Sourcepub async fn build(self, name: &str) -> Result<Client, IpcError>
pub async fn build(self, name: &str) -> Result<Client, IpcError>
Connects to a IPC socket
use jsonrpsee::{core::client::ClientT, rpc_params};
use reth_ipc::client::IpcClientBuilder;
let client = IpcClientBuilder::default().build("/tmp/my-uds").await?;
let response: String = client.request("say_hello", rpc_params![]).await?;
Sourcepub fn build_with_tokio<S, R>(self, sender: S, receiver: R) -> Client
pub fn build_with_tokio<S, R>(self, sender: S, receiver: R) -> Client
Uses the sender and receiver channels to connect to the socket.
Trait Implementations§
Source§impl Clone for IpcClientBuilder
impl Clone for IpcClientBuilder
Source§fn clone(&self) -> IpcClientBuilder
fn clone(&self) -> IpcClientBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IpcClientBuilder
impl Debug for IpcClientBuilder
Source§impl Default for IpcClientBuilder
impl Default for IpcClientBuilder
Source§fn default() -> IpcClientBuilder
fn default() -> IpcClientBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IpcClientBuilder
impl RefUnwindSafe for IpcClientBuilder
impl Send for IpcClientBuilder
impl Sync for IpcClientBuilder
impl Unpin for IpcClientBuilder
impl UnwindSafe for IpcClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes