pub struct Receiver(/* private fields */);Expand description
The capability to consume the peer endpoint’s outbound flow.
Implementations§
Source§impl Receiver
impl Receiver
pub fn id(&self) -> ExchangeId
pub fn flow(&self) -> Flow
Sourcepub fn cancel(&mut self)
pub fn cancel(&mut self)
Stop this direction and return published chunks that were not taken. Previously returned chunks keep their own credit until dropped.
Sourcepub fn reset_signal(&self) -> ResetSignal
pub fn reset_signal(&self) -> ResetSignal
Observe a reset independently of the task reading body descriptors.
pub fn try_next(&mut self) -> Result<FlowEvent>
pub fn dispatch<H: FlowHandler>( &mut self, handler: &mut H, ) -> Result<(), DispatchError<H::Error>>
pub fn wait_readable(&self) -> Result<()>
pub fn poll_readable(&self, cx: &mut Context<'_>) -> Poll<Result<()>>
Auto Trait Implementations§
impl Forget for Receiver
impl Freeze for Receiver
impl Move for Receiver
impl RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnsafeUnpin for Receiver
impl UnwindSafe for Receiver
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