pub struct DoClientRequest<'a> { /* private fields */ }Expand description
A publisheable request ready to be published to the given client
Implementations§
Source§impl DoClientRequest<'_>
impl DoClientRequest<'_>
Sourcepub fn try_request(self) -> Result<ResponseFut, TryCommandError>
pub fn try_request(self) -> Result<ResponseFut, TryCommandError>
Publish this request if there’s enough immediately available space in the internal buffers
This method will publish the given request only if there’s enough immediately available space to enqueue it in the client’s networking stack.
§Errors
It returns an error if the client’s buffer is full or if the client has been closed.
Trait Implementations§
Source§impl Debug for DoClientRequest<'_>
impl Debug for DoClientRequest<'_>
Source§impl<'a> IntoFuture for DoClientRequest<'a>
impl<'a> IntoFuture for DoClientRequest<'a>
Source§type Output = Result<ResponseFut, ClientClosedError>
type Output = Result<ResponseFut, ClientClosedError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <DoClientRequest<'a> as IntoFuture>::Output> + Send + Sync + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <DoClientRequest<'a> as IntoFuture>::Output> + Send + Sync + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> !Freeze for DoClientRequest<'a>
impl<'a> RefUnwindSafe for DoClientRequest<'a>
impl<'a> Send for DoClientRequest<'a>
impl<'a> Sync for DoClientRequest<'a>
impl<'a> Unpin for DoClientRequest<'a>
impl<'a> UnsafeUnpin for DoClientRequest<'a>
impl<'a> UnwindSafe for DoClientRequest<'a>
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