pub enum Event<'a> {
Nothing,
Headers {
stream: u32,
end_stream: bool,
},
Data {
stream: u32,
data: &'a [u8],
end_stream: bool,
},
Reset {
stream: u32,
code: u32,
},
GoAway {
code: u32,
},
}Expand description
What arrived.
Variants§
Nothing
Nothing the caller needs to act on: a settings exchange, a ping, an
unknown frame type. Anything that needed a reply is already in out.
Headers
A complete header block. The fields were passed to the callback.
Data
Response body bytes. Borrowed from the caller’s own frame buffer, so nothing is copied.
Reset
The peer reset one stream. The connection is still usable.
GoAway
The peer is shutting the connection down.
Trait Implementations§
impl<'a> Eq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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