pub struct EthSubscribe<T> { /* private fields */ }
Expand description
Eth
namespace, subscriptions
Implementations§
Source§impl<T: DuplexTransport> EthSubscribe<T>
impl<T: DuplexTransport> EthSubscribe<T>
Sourcepub async fn subscribe_new_heads(
&self,
options: CallOptions,
) -> Result<SubscriptionStream<T, BlockHeader>>
pub async fn subscribe_new_heads( &self, options: CallOptions, ) -> Result<SubscriptionStream<T, BlockHeader>>
Create a new heads subscription
Sourcepub async fn subscribe_logs(
&self,
filter: Filter,
options: CallOptions,
) -> Result<SubscriptionStream<T, Log>>
pub async fn subscribe_logs( &self, filter: Filter, options: CallOptions, ) -> Result<SubscriptionStream<T, Log>>
Create a logs subscription
Sourcepub async fn subscribe_new_pending_transactions(
&self,
options: CallOptions,
) -> Result<SubscriptionStream<T, H256>>
pub async fn subscribe_new_pending_transactions( &self, options: CallOptions, ) -> Result<SubscriptionStream<T, H256>>
Create a pending transactions subscription
Sourcepub async fn subscribe_syncing(
&self,
options: CallOptions,
) -> Result<SubscriptionStream<T, SyncState>>
pub async fn subscribe_syncing( &self, options: CallOptions, ) -> Result<SubscriptionStream<T, SyncState>>
Create a sync status subscription
Trait Implementations§
Source§impl<T: Clone> Clone for EthSubscribe<T>
impl<T: Clone> Clone for EthSubscribe<T>
Source§fn clone(&self) -> EthSubscribe<T>
fn clone(&self) -> EthSubscribe<T>
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<T: Debug> Debug for EthSubscribe<T>
impl<T: Debug> Debug for EthSubscribe<T>
Auto Trait Implementations§
impl<T> Freeze for EthSubscribe<T>where
T: Freeze,
impl<T> RefUnwindSafe for EthSubscribe<T>where
T: RefUnwindSafe,
impl<T> Send for EthSubscribe<T>where
T: Send,
impl<T> Sync for EthSubscribe<T>where
T: Sync,
impl<T> Unpin for EthSubscribe<T>where
T: Unpin,
impl<T> UnwindSafe for EthSubscribe<T>where
T: UnwindSafe,
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