pub struct Future<'a, N: TcpClientStack, C: Clock, P: Protocol, Cmd: Command<P::FrameType>> { /* private fields */ }
Expand description
Non-blocking response management
Blocks until response is received and returns the response
Throws an error on invalid response or timeout (if configured)
Non blocking method for checking if data is ready
So if true is returned, wait() is non-blocking
Reads all pending data and returns true if response is ready
Errors are preserved and returned on wait() call
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.