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
Fields
§
req: HeaderWithProof§
resp_tx: Option<BlockingResponseSender<<HeaderWithProof as Request>::Response>>Headers
HeadersWithCheckpoint
Fields
§
resp_tx: Option<BlockingResponseSender<<HeadersWithCheckpoint as Request>::Response>>EstimateFee
HeadersSubscribe
Fields
§
req: HeadersSubscribe§
resp_tx: Option<BlockingResponseSender<<HeadersSubscribe as Request>::Response>>RelayFee
GetBalance
GetHistory
GetMempool
ListUnspent
ScriptHashSubscribe
Fields
§
req: ScriptHashSubscribe§
resp_tx: Option<BlockingResponseSender<<ScriptHashSubscribe as Request>::Response>>ScriptHashUnsubscribe
Fields
§
resp_tx: Option<BlockingResponseSender<<ScriptHashUnsubscribe as Request>::Response>>BroadcastTx
GetTx
GetTxMerkle
GetTxidFromPos
Fields
§
req: GetTxidFromPos§
resp_tx: Option<BlockingResponseSender<<GetTxidFromPos as Request>::Response>>GetFeeHistogram
Fields
§
req: GetFeeHistogram§
resp_tx: Option<BlockingResponseSender<<GetFeeHistogram as Request>::Response>>Banner
Ping
Custom
Trait Implementations§
Source§impl Debug for BlockingPendingRequest
impl Debug for BlockingPendingRequest
Source§impl From<(Banner, Option<SyncSender<Result<<Banner as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
impl From<(Banner, Option<SyncSender<Result<<Banner as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(BroadcastTx, Option<SyncSender<Result<<BroadcastTx as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
impl From<(Custom, Option<SyncSender<Result<<Custom as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(EstimateFee, Option<SyncSender<Result<<EstimateFee as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
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
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
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
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
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
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
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
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
impl From<(GetTx, Option<SyncSender<Result<<GetTx as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(GetTxMerkle, Option<SyncSender<Result<<GetTxMerkle as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
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
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
impl From<(Header, Option<SyncSender<Result<<Header as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(HeaderWithProof, Option<SyncSender<Result<<HeaderWithProof as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
impl From<(Headers, Option<SyncSender<Result<<Headers as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(HeadersSubscribe, Option<SyncSender<Result<<HeadersSubscribe as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
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
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
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
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
impl From<(Ping, Option<SyncSender<Result<<Ping as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(RelayFee, Option<SyncSender<Result<<RelayFee as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
impl From<(RelayFee, Option<SyncSender<Result<<RelayFee as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
Source§impl From<(ScriptHashSubscribe, Option<SyncSender<Result<<ScriptHashSubscribe as Request>::Response, ResponseError>>>)> for BlockingPendingRequest
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
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
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
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
impl PendingRequest for BlockingPendingRequest
fn to_method_and_params(&self) -> MethodAndParams
fn satisfy(self, raw_resp: Value) -> Result<Option<SatisfiedRequest>, Error>
fn satisfy_error(self, raw_error: Value) -> Option<ErroredRequest>
Auto Trait Implementations§
impl Freeze for BlockingPendingRequest
impl RefUnwindSafe for BlockingPendingRequest
impl Send for BlockingPendingRequest
impl Sync for BlockingPendingRequest
impl Unpin for BlockingPendingRequest
impl UnwindSafe for BlockingPendingRequest
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