Enum solana_banks_interface::BanksResponseFut [−][src]
pub enum BanksResponseFut<S: Banks> {
SendTransactionWithContext(<S as Banks>::SendTransactionWithContextFut),
GetFeesWithCommitmentAndContext(<S as Banks>::GetFeesWithCommitmentAndContextFut),
GetTransactionStatusWithContext(<S as Banks>::GetTransactionStatusWithContextFut),
GetSlotWithContext(<S as Banks>::GetSlotWithContextFut),
GetBlockHeightWithContext(<S as Banks>::GetBlockHeightWithContextFut),
ProcessTransactionWithCommitmentAndContext(<S as Banks>::ProcessTransactionWithCommitmentAndContextFut),
GetAccountWithCommitmentAndContext(<S as Banks>::GetAccountWithCommitmentAndContextFut),
}
Expand description
A future resolving to a server response.
Variants
SendTransactionWithContext(<S as Banks>::SendTransactionWithContextFut)
Tuple Fields of SendTransactionWithContext
0: <S as Banks>::SendTransactionWithContextFut
GetFeesWithCommitmentAndContext(<S as Banks>::GetFeesWithCommitmentAndContextFut)
Tuple Fields of GetFeesWithCommitmentAndContext
0: <S as Banks>::GetFeesWithCommitmentAndContextFut
GetTransactionStatusWithContext(<S as Banks>::GetTransactionStatusWithContextFut)
Tuple Fields of GetTransactionStatusWithContext
0: <S as Banks>::GetTransactionStatusWithContextFut
GetSlotWithContext(<S as Banks>::GetSlotWithContextFut)
Tuple Fields of GetSlotWithContext
0: <S as Banks>::GetSlotWithContextFut
GetBlockHeightWithContext(<S as Banks>::GetBlockHeightWithContextFut)
Tuple Fields of GetBlockHeightWithContext
0: <S as Banks>::GetBlockHeightWithContextFut
ProcessTransactionWithCommitmentAndContext(<S as Banks>::ProcessTransactionWithCommitmentAndContextFut)
Tuple Fields of ProcessTransactionWithCommitmentAndContext
GetAccountWithCommitmentAndContext(<S as Banks>::GetAccountWithCommitmentAndContextFut)
Tuple Fields of GetAccountWithCommitmentAndContext
0: <S as Banks>::GetAccountWithCommitmentAndContextFut
Trait Implementations
type Output = BanksResponse
type Output = BanksResponse
The type of value produced on completion.
Auto Trait Implementations
impl<S> RefUnwindSafe for BanksResponseFut<S> where
<S as Banks>::GetAccountWithCommitmentAndContextFut: RefUnwindSafe,
<S as Banks>::GetBlockHeightWithContextFut: RefUnwindSafe,
<S as Banks>::GetFeesWithCommitmentAndContextFut: RefUnwindSafe,
<S as Banks>::GetSlotWithContextFut: RefUnwindSafe,
<S as Banks>::GetTransactionStatusWithContextFut: RefUnwindSafe,
<S as Banks>::ProcessTransactionWithCommitmentAndContextFut: RefUnwindSafe,
<S as Banks>::SendTransactionWithContextFut: RefUnwindSafe,
impl<S> Send for BanksResponseFut<S> where
<S as Banks>::GetAccountWithCommitmentAndContextFut: Send,
<S as Banks>::GetBlockHeightWithContextFut: Send,
<S as Banks>::GetFeesWithCommitmentAndContextFut: Send,
<S as Banks>::GetSlotWithContextFut: Send,
<S as Banks>::GetTransactionStatusWithContextFut: Send,
<S as Banks>::ProcessTransactionWithCommitmentAndContextFut: Send,
<S as Banks>::SendTransactionWithContextFut: Send,
impl<S> Sync for BanksResponseFut<S> where
<S as Banks>::GetAccountWithCommitmentAndContextFut: Sync,
<S as Banks>::GetBlockHeightWithContextFut: Sync,
<S as Banks>::GetFeesWithCommitmentAndContextFut: Sync,
<S as Banks>::GetSlotWithContextFut: Sync,
<S as Banks>::GetTransactionStatusWithContextFut: Sync,
<S as Banks>::ProcessTransactionWithCommitmentAndContextFut: Sync,
<S as Banks>::SendTransactionWithContextFut: Sync,
impl<S> Unpin for BanksResponseFut<S> where
<S as Banks>::GetAccountWithCommitmentAndContextFut: Unpin,
<S as Banks>::GetBlockHeightWithContextFut: Unpin,
<S as Banks>::GetFeesWithCommitmentAndContextFut: Unpin,
<S as Banks>::GetSlotWithContextFut: Unpin,
<S as Banks>::GetTransactionStatusWithContextFut: Unpin,
<S as Banks>::ProcessTransactionWithCommitmentAndContextFut: Unpin,
<S as Banks>::SendTransactionWithContextFut: Unpin,
impl<S> UnwindSafe for BanksResponseFut<S> where
<S as Banks>::GetAccountWithCommitmentAndContextFut: UnwindSafe,
<S as Banks>::GetBlockHeightWithContextFut: UnwindSafe,
<S as Banks>::GetFeesWithCommitmentAndContextFut: UnwindSafe,
<S as Banks>::GetSlotWithContextFut: UnwindSafe,
<S as Banks>::GetTransactionStatusWithContextFut: UnwindSafe,
<S as Banks>::ProcessTransactionWithCommitmentAndContextFut: UnwindSafe,
<S as Banks>::SendTransactionWithContextFut: UnwindSafe,
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Map this future’s output to a different type, returning a new future of the resulting type. Read more
Map this future’s output to a different type, returning a new future of the resulting type. Read more
Chain on a computation for when a future finished, passing the result of
the future to the provided closure f
. Read more
fn left_future<B>(self) -> Either<Self, B> where
B: Future<Output = Self::Output>,
fn left_future<B>(self) -> Either<Self, B> where
B: Future<Output = Self::Output>,
Wrap this future in an Either
future, making it the left-hand variant
of that Either
. Read more
fn right_future<A>(self) -> Either<A, Self> where
A: Future<Output = Self::Output>,
fn right_future<A>(self) -> Either<A, Self> where
A: Future<Output = Self::Output>,
Wrap this future in an Either
future, making it the right-hand variant
of that Either
. Read more
fn into_stream(self) -> IntoStream<Self>
fn into_stream(self) -> IntoStream<Self>
Convert this future into a single element stream. Read more
Flatten the execution of this future when the output of this future is itself another future. Read more
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
Flatten the execution of this future when the successful result of this future is a stream. Read more
fn fuse(self) -> Fuse<Self>
fn fuse(self) -> Fuse<Self>
Fuse a future such that poll
will never again be called once it has
completed. This method can be used to turn any Future
into a
FusedFuture
. Read more
Do something with the output of a future before passing it on. Read more
fn catch_unwind(self) -> CatchUnwind<Self> where
Self: UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> where
Self: UnwindSafe,
Catches unwinding panics while polling the future. Read more
Create a cloneable handle to this future where all handles will resolve to the same result. Read more
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)
Turn this future into a future that yields ()
on completion and sends
its output to another future on a separate task. Read more
Wrap the future in a Box, pinning it. Read more
Wrap the future in a Box, pinning it. Read more
fn unit_error(self) -> UnitError<Self>
fn unit_error(self) -> UnitError<Self>
Turns a Future<Output = T>
into a
TryFuture<Ok = T, Error = ()
>. Read more
fn never_error(self) -> NeverError<Self>
fn never_error(self) -> NeverError<Self>
Turns a Future<Output = T>
into a
TryFuture<Ok = T, Error = Never
>. Read more
fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
A convenience for calling Future::poll
on Unpin
future types.
fn now_or_never(self) -> Option<Self::Output>
fn now_or_never(self) -> Option<Self::Output>
Evaluates and consumes the future, returning the resulting output if
the future is ready after the first call to Future::poll
. Read more
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
into_future
)Which kind of future are we turning this into?
into_future
)Creates a future from a value.