#[repr(u8)]pub enum ConnectionEvent {
Accept = 0,
DataReady = 1,
RequestComplete = 2,
ResponseReady = 3,
WriteComplete = 4,
KeepAlive = 5,
Timeout = 6,
Error = 7,
Close = 8,
}Expand description
Events that trigger state transitions.
Variants§
Accept = 0
New connection accepted
DataReady = 1
Data available for reading
RequestComplete = 2
Request fully read
ResponseReady = 3
Response ready to send
WriteComplete = 4
Write completed
KeepAlive = 5
Keep-alive: ready for next request
Timeout = 6
Timeout occurred
Error = 7
Error occurred
Close = 8
Close requested
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Source§fn clone(&self) -> ConnectionEvent
fn clone(&self) -> ConnectionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionEvent
impl Debug for ConnectionEvent
Source§impl Hash for ConnectionEvent
impl Hash for ConnectionEvent
Source§impl PartialEq for ConnectionEvent
impl PartialEq for ConnectionEvent
impl Copy for ConnectionEvent
impl Eq for ConnectionEvent
impl StructuralPartialEq for ConnectionEvent
Auto Trait Implementations§
impl Freeze for ConnectionEvent
impl RefUnwindSafe for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
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
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging