pub struct ClientRequestSink<Req: Send + 'static> { /* private fields */ }Expand description
And interface to send messages when client request is streaming.
Implementations§
Source§impl<Req: Send> ClientRequestSink<Req>
impl<Req: Send> ClientRequestSink<Req>
Sourcepub fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), StreamDead>>
pub fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), StreamDead>>
Poll for write availability.
When request is not polled, send_data
will be successful anyway, but client memory can overflow.
Auto Trait Implementations§
impl<Req> Freeze for ClientRequestSink<Req>
impl<Req> !RefUnwindSafe for ClientRequestSink<Req>
impl<Req> Send for ClientRequestSink<Req>
impl<Req> !Sync for ClientRequestSink<Req>
impl<Req> Unpin for ClientRequestSink<Req>
impl<Req> !UnwindSafe for ClientRequestSink<Req>
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