BlockingPendingRequest

Enum BlockingPendingRequest 

Source
pub enum BlockingPendingRequest {
Show 21 variants Header { req: Header, resp_tx: Option<BlockingResponseSender<<Header as Request>::Response>>, }, HeaderWithProof { req: HeaderWithProof, resp_tx: Option<BlockingResponseSender<<HeaderWithProof as Request>::Response>>, }, Headers { req: Headers, resp_tx: Option<BlockingResponseSender<<Headers as Request>::Response>>, }, HeadersWithCheckpoint { req: HeadersWithCheckpoint, resp_tx: Option<BlockingResponseSender<<HeadersWithCheckpoint as Request>::Response>>, }, EstimateFee { req: EstimateFee, resp_tx: Option<BlockingResponseSender<<EstimateFee as Request>::Response>>, }, HeadersSubscribe { req: HeadersSubscribe, resp_tx: Option<BlockingResponseSender<<HeadersSubscribe as Request>::Response>>, }, RelayFee { req: RelayFee, resp_tx: Option<BlockingResponseSender<<RelayFee as Request>::Response>>, }, GetBalance { req: GetBalance, resp_tx: Option<BlockingResponseSender<<GetBalance as Request>::Response>>, }, GetHistory { req: GetHistory, resp_tx: Option<BlockingResponseSender<<GetHistory as Request>::Response>>, }, GetMempool { req: GetMempool, resp_tx: Option<BlockingResponseSender<<GetMempool as Request>::Response>>, }, ListUnspent { req: ListUnspent, resp_tx: Option<BlockingResponseSender<<ListUnspent as Request>::Response>>, }, ScriptHashSubscribe { req: ScriptHashSubscribe, resp_tx: Option<BlockingResponseSender<<ScriptHashSubscribe as Request>::Response>>, }, ScriptHashUnsubscribe { req: ScriptHashUnsubscribe, resp_tx: Option<BlockingResponseSender<<ScriptHashUnsubscribe as Request>::Response>>, }, BroadcastTx { req: BroadcastTx, resp_tx: Option<BlockingResponseSender<<BroadcastTx as Request>::Response>>, }, GetTx { req: GetTx, resp_tx: Option<BlockingResponseSender<<GetTx as Request>::Response>>, }, GetTxMerkle { req: GetTxMerkle, resp_tx: Option<BlockingResponseSender<<GetTxMerkle as Request>::Response>>, }, GetTxidFromPos { req: GetTxidFromPos, resp_tx: Option<BlockingResponseSender<<GetTxidFromPos as Request>::Response>>, }, GetFeeHistogram { req: GetFeeHistogram, resp_tx: Option<BlockingResponseSender<<GetFeeHistogram as Request>::Response>>, }, Banner { req: Banner, resp_tx: Option<BlockingResponseSender<<Banner as Request>::Response>>, }, Ping { req: Ping, resp_tx: Option<BlockingResponseSender<<Ping as Request>::Response>>, }, Custom { req: Custom, resp_tx: Option<BlockingResponseSender<<Custom as Request>::Response>>, },
}

Variants§

§

Header

§

HeaderWithProof

§

Headers

§

HeadersWithCheckpoint

§

EstimateFee

§

HeadersSubscribe

§

RelayFee

§

GetBalance

§

GetHistory

§

GetMempool

§

ListUnspent

§

ScriptHashSubscribe

§

ScriptHashUnsubscribe

§

BroadcastTx

§

GetTx

§

GetTxMerkle

§

GetTxidFromPos

§

GetFeeHistogram

§

Banner

§

Ping

§

Custom

Trait Implementations§

Source§

impl Debug for BlockingPendingRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<(Banner, Option<SyncSender<Result<<Banner as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<Banner, <Banner as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(BroadcastTx, Option<SyncSender<Result<<BroadcastTx as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<BroadcastTx, <BroadcastTx as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(Custom, Option<SyncSender<Result<<Custom as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<Custom, <Custom as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(EstimateFee, Option<SyncSender<Result<<EstimateFee as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<EstimateFee, <EstimateFee as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetBalance, Option<SyncSender<Result<<GetBalance as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetBalance, <GetBalance as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetFeeHistogram, Option<SyncSender<Result<<GetFeeHistogram as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetFeeHistogram, <GetFeeHistogram as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetHistory, Option<SyncSender<Result<<GetHistory as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetHistory, <GetHistory as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetMempool, Option<SyncSender<Result<<GetMempool as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetMempool, <GetMempool as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetTx, Option<SyncSender<Result<<GetTx as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetTx, <GetTx as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetTxMerkle, Option<SyncSender<Result<<GetTxMerkle as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetTxMerkle, <GetTxMerkle as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(GetTxidFromPos, Option<SyncSender<Result<<GetTxidFromPos as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<GetTxidFromPos, <GetTxidFromPos as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(Header, Option<SyncSender<Result<<Header as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<Header, <Header as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(HeaderWithProof, Option<SyncSender<Result<<HeaderWithProof as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<HeaderWithProof, <HeaderWithProof as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(Headers, Option<SyncSender<Result<<Headers as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<Headers, <Headers as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(HeadersSubscribe, Option<SyncSender<Result<<HeadersSubscribe as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<HeadersSubscribe, <HeadersSubscribe as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(HeadersWithCheckpoint, Option<SyncSender<Result<<HeadersWithCheckpoint as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<HeadersWithCheckpoint, <HeadersWithCheckpoint as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(ListUnspent, Option<SyncSender<Result<<ListUnspent as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<ListUnspent, <ListUnspent as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(Ping, Option<SyncSender<Result<<Ping as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<Ping, <Ping as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(RelayFee, Option<SyncSender<Result<<RelayFee as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<RelayFee, <RelayFee as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(ScriptHashSubscribe, Option<SyncSender<Result<<ScriptHashSubscribe as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<ScriptHashSubscribe, <ScriptHashSubscribe as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl From<(ScriptHashUnsubscribe, Option<SyncSender<Result<<ScriptHashUnsubscribe as Request>::Response, ResponseError>>>)> for BlockingPendingRequest

Source§

fn from( (req, resp_tx): BlockingPendingRequestTuple<ScriptHashUnsubscribe, <ScriptHashUnsubscribe as Request>::Response>, ) -> Self

Converts to this type from the input type.
Source§

impl PendingRequest for BlockingPendingRequest

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.