pub enum EventType {
Request,
InformationalResponse,
NormalResponse,
Data,
EndOfMessage,
ConnectionClosed,
NeedData,
Paused,
RequestClient,
InformationalResponseSwitchUpgrade,
NormalResponseSwitchConnect,
}Expand description
Internal event classification used by the state machine.
Variants§
Request
Request head.
InformationalResponse
Informational response head.
NormalResponse
Final response head.
Data
Body data.
EndOfMessage
End of message.
ConnectionClosed
Connection close.
NeedData
Need more inbound data.
Paused
Inbound events are paused.
RequestClient
Request plus client switch proposal.
InformationalResponseSwitchUpgrade
Informational response accepting an Upgrade switch.
NormalResponseSwitchConnect
Final response accepting a CONNECT switch.
Trait Implementations§
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnsafeUnpin for EventType
impl UnwindSafe for EventType
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