pub enum H3Event {
Headers {
stream: u64,
fields: Vec<Field>,
},
Data {
stream: u64,
},
Trailers {
stream: u64,
fields: Vec<Field>,
},
Finished {
stream: u64,
},
Reset {
stream: u64,
code: u64,
},
Writable {
stream: u64,
},
GoAway {
id: u64,
},
Error(H3Error),
}Variants§
Headers
Request headers (server) or response headers (client), validated.
Data
Body bytes are available on stream: call Http3::recv_body.
Trailers
Finished
The peer finished the message (all body bytes have been read).
Reset
The peer abandoned the stream, or we rejected a malformed message with code.
Writable
More body may be sent on stream.
GoAway
The peer sent GOAWAY.
Error(H3Error)
The connection failed with this HTTP/3 error and is closing.
Trait Implementations§
impl Eq for H3Event
impl StructuralPartialEq for H3Event
Auto Trait Implementations§
impl Forget for H3Event
impl Freeze for H3Event
impl Move for H3Event
impl RefUnwindSafe for H3Event
impl Send for H3Event
impl Sync for H3Event
impl Unpin for H3Event
impl UnsafeUnpin for H3Event
impl UnwindSafe for H3Event
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