pub struct IncomingFlow { /* private fields */ }Expand description
The receiving half of one datagram flow.
Dropping it stops the FLOW stream with CANCELED, which the sender learns
as Error::Canceled on its next send; IncomingFlow::refuse stops
it with REJECTED instead.
Implementations§
Source§impl IncomingFlow
impl IncomingFlow
Sourcepub async fn recv(&self) -> Option<Bytes>
pub async fn recv(&self) -> Option<Bytes>
The next datagram, oldest first; None once the flow has ended and
every datagram that arrived before its end has been taken.
Sourcepub fn path_stats(&self) -> Option<PathStats>
pub fn path_stats(&self) -> Option<PathStats>
The path under this flow, or None on a local transport, which has
no path to measure.
Trait Implementations§
Source§impl Debug for IncomingFlow
impl Debug for IncomingFlow
Source§impl Drop for IncomingFlow
impl Drop for IncomingFlow
Auto Trait Implementations§
impl !RefUnwindSafe for IncomingFlow
impl !UnwindSafe for IncomingFlow
impl Forget for IncomingFlow
impl Freeze for IncomingFlow
impl Move for IncomingFlow
impl Send for IncomingFlow
impl Sync for IncomingFlow
impl Unpin for IncomingFlow
impl UnsafeUnpin for IncomingFlow
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