Struct ckb_notify::NotifyController
source · [−]pub struct NotifyController { /* private fields */ }Expand description
TODO(doc): @quake
Implementations
sourceimpl 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 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
sourceimpl Clone for NotifyController
impl Clone for NotifyController
sourcefn clone(&self) -> NotifyController
fn clone(&self) -> NotifyController
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl !RefUnwindSafe for NotifyController
impl Send for NotifyController
impl Sync for NotifyController
impl Unpin for NotifyController
impl !UnwindSafe for NotifyController
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more