Struct omegga::ResponseAwaiter [−][src]
pub struct ResponseAwaiter(_);
Expand description
A future that waits for the server to respond, returning a Response
.
This will await indefinitely, so use with Tokio’s select!
macro to impose a timeout.
Trait Implementations
type Output = Result<Option<Value>, ResponseError>
type Output = Result<Option<Value>, ResponseError>
The type of value produced on completion.
Auto Trait Implementations
impl !RefUnwindSafe for ResponseAwaiter
impl Send for ResponseAwaiter
impl Sync for ResponseAwaiter
impl Unpin for ResponseAwaiter
impl !UnwindSafe for ResponseAwaiter
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.