pub enum Event {
Headers {
list: Vec<Header>,
more_frames: bool,
},
Data,
Finished,
Reset(u64),
PriorityUpdate,
GoAway,
}
Expand description
An HTTP/3 connection event.
Variants§
Headers
Request/response headers were received.
Fields
Data
Data was received.
This indicates that the application can use the recv_body()
method
to retrieve the data from the stream.
Note that recv_body()
will need to be called repeatedly until the
Done
value is returned, as the event will not be re-armed until all
buffered data is read.
Finished
Stream was closed,
Reset(u64)
Stream was reset.
The associated data represents the error code sent by the peer.
PriorityUpdate
PRIORITY_UPDATE was received.
This indicates that the application can use the
take_last_priority_update()
method to take the last received
PRIORITY_UPDATE for a specified stream.
This event is triggered once per stream until the last PRIORITY_UPDATE
is taken. It is recommended that applications defer taking the
PRIORITY_UPDATE until after poll()
returns Done
.
GoAway
GOAWAY was received.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more