Struct ethers::providers::Ipc [−][src]
pub struct Ipc { /* fields omitted */ }
Expand description
Unix Domain Sockets (IPC) transport.
Implementations
Trait Implementations
type Error = IpcError
type Error = IpcError
A JSON-RPC Error
pub fn request<'life0, 'life1, 'async_trait, T, R>(
&'life0 self,
method: &'life1 str,
params: T
) -> Pin<Box<dyn Future<Output = Result<R, IpcError>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
T: Serialize + Send + Sync + 'async_trait,
R: DeserializeOwned + 'async_trait,
Ipc: 'async_trait,
pub fn request<'life0, 'life1, 'async_trait, T, R>(
&'life0 self,
method: &'life1 str,
params: T
) -> Pin<Box<dyn Future<Output = Result<R, IpcError>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
T: Serialize + Send + Sync + 'async_trait,
R: DeserializeOwned + 'async_trait,
Ipc: 'async_trait,
Sends a request with the provided JSON-RPC and parameters serialized as JSON
type NotificationStream = UnboundedReceiver<Value>
type NotificationStream = UnboundedReceiver<Value>
The type of stream this transport returns
pub fn subscribe<T>(
&self,
id: T
) -> Result<<Ipc as PubsubClient>::NotificationStream, IpcError> where
T: Into<U256>,
pub fn subscribe<T>(
&self,
id: T
) -> Result<<Ipc as PubsubClient>::NotificationStream, IpcError> where
T: Into<U256>,
Add a subscription to this transport
Auto Trait Implementations
impl !RefUnwindSafe for Ipc
impl !UnwindSafe for Ipc
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more