Struct ckb_notify::NotifyController
source · pub struct NotifyController { /* private fields */ }Expand description
TODO(doc): @quake
Implementations§
source§impl NotifyController
impl NotifyController
sourcepub async fn subscribe_new_block<S: ToString>(
&self,
name: S
) -> Receiver<BlockView>
pub async fn subscribe_new_block<S: ToString>( &self, name: S ) -> Receiver<BlockView>
TODO(doc): @quake
sourcepub async fn watch_new_block<S: ToString>(&self, name: S) -> Receiver<Byte32>
pub async fn watch_new_block<S: ToString>(&self, name: S) -> Receiver<Byte32>
watch new block notify
sourcepub fn notify_new_block(&self, block: BlockView)
pub fn notify_new_block(&self, block: BlockView)
TODO(doc): @quake
sourcepub async fn subscribe_new_transaction<S: ToString>(
&self,
name: S
) -> Receiver<PoolTransactionEntry>
pub async fn subscribe_new_transaction<S: ToString>( &self, name: S ) -> Receiver<PoolTransactionEntry>
TODO(doc): @quake
sourcepub fn notify_new_transaction(&self, tx_entry: PoolTransactionEntry)
pub fn notify_new_transaction(&self, tx_entry: PoolTransactionEntry)
TODO(doc): @quake
sourcepub async fn subscribe_proposed_transaction<S: ToString>(
&self,
name: S
) -> Receiver<PoolTransactionEntry>
pub async fn subscribe_proposed_transaction<S: ToString>( &self, name: S ) -> Receiver<PoolTransactionEntry>
TODO(doc): @quake
sourcepub fn notify_proposed_transaction(&self, tx_entry: PoolTransactionEntry)
pub fn notify_proposed_transaction(&self, tx_entry: PoolTransactionEntry)
TODO(doc): @quake
sourcepub async fn subscribe_reject_transaction<S: ToString>(
&self,
name: S
) -> Receiver<(PoolTransactionEntry, Reject)>
pub async fn subscribe_reject_transaction<S: ToString>( &self, name: S ) -> Receiver<(PoolTransactionEntry, Reject)>
TODO(doc): @quake
sourcepub fn notify_reject_transaction(
&self,
tx_entry: PoolTransactionEntry,
reject: Reject
)
pub fn notify_reject_transaction( &self, tx_entry: PoolTransactionEntry, reject: Reject )
TODO(doc): @quake
sourcepub async fn subscribe_network_alert<S: ToString>(
&self,
name: S
) -> Receiver<Alert>
pub async fn subscribe_network_alert<S: ToString>( &self, name: S ) -> Receiver<Alert>
TODO(doc): @quake
sourcepub fn notify_network_alert(&self, alert: Alert)
pub fn notify_network_alert(&self, alert: Alert)
TODO(doc): @quake
Trait Implementations§
source§impl Clone for NotifyController
impl Clone for NotifyController
source§fn clone(&self) -> NotifyController
fn clone(&self) -> NotifyController
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 more