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 moreAuto Trait Implementations§
impl Freeze for NotifyController
impl !RefUnwindSafe for NotifyController
impl Send for NotifyController
impl Sync for NotifyController
impl Unpin for NotifyController
impl !UnwindSafe for NotifyController
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more