pub enum H2ReadOutcome {
Skipped,
Filled {
amount: usize,
size: usize,
status: SocketResult,
},
}Expand description
What the caller of ConnectionH2::poll_read_target actually did, handed
back to ConnectionH2::handle_read. Each variant answers the
H2ReadTarget of the same name.
Variants§
Skipped
Answers H2ReadTarget::Skip: no read was performed.
Filled
Answers H2ReadTarget::Fill: amount bytes of space were offered,
and the socket returned size bytes with status.
amount is echoed back rather than re-read from expect_read inside
ConnectionH2::handle_read, so the byte debt the core settles is the
one it actually offered and not whatever the table happens to hold by
then.
Trait Implementations§
Source§impl Clone for H2ReadOutcome
impl Clone for H2ReadOutcome
impl Copy for H2ReadOutcome
Source§impl Debug for H2ReadOutcome
impl Debug for H2ReadOutcome
impl Eq for H2ReadOutcome
Source§impl PartialEq for H2ReadOutcome
impl PartialEq for H2ReadOutcome
impl StructuralPartialEq for H2ReadOutcome
Auto Trait Implementations§
impl Freeze for H2ReadOutcome
impl RefUnwindSafe for H2ReadOutcome
impl Send for H2ReadOutcome
impl Sync for H2ReadOutcome
impl Unpin for H2ReadOutcome
impl UnsafeUnpin for H2ReadOutcome
impl UnwindSafe for H2ReadOutcome
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.