pub enum EngineEvent {
MessageReceived {
channel_id: ChannelId,
message_key: MessageKey,
},
LinkWrite,
AckRequired {
packet_number: PacketNumber,
},
Retransmit {
packet_number: PacketNumber,
},
WakeAt(Instant),
Reliability(PacketReliabilityEvent),
}Expand description
Events emitted by the protocol engine to its embedding environment.
Variants§
MessageReceived
A complete message is available for a channel.
Fields
§
message_key: MessageKeyMessage identity on the channel.
LinkWrite
A protocol response should be written to the lower link.
AckRequired
An ACK response should be generated for a packet.
Fields
§
packet_number: PacketNumberPacket number that should be acknowledged.
Retransmit
A retransmission became due.
Fields
§
packet_number: PacketNumberPacket number selected for retransmission.
WakeAt(Instant)
The engine needs to be ticked again at a later instant.
Reliability(PacketReliabilityEvent)
A packet-level reliability event occurred.
Implementations§
Source§impl EngineEvent
impl EngineEvent
Sourcepub const fn kind(self) -> EngineEventKind
pub const fn kind(self) -> EngineEventKind
Returns this event’s kind.
Trait Implementations§
Source§impl Clone for EngineEvent
impl Clone for EngineEvent
Source§fn clone(&self) -> EngineEvent
fn clone(&self) -> EngineEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EngineEvent
impl Debug for EngineEvent
Source§impl PartialEq for EngineEvent
impl PartialEq for EngineEvent
Source§fn eq(&self, other: &EngineEvent) -> bool
fn eq(&self, other: &EngineEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EngineEvent
impl Eq for EngineEvent
impl StructuralPartialEq for EngineEvent
Auto Trait Implementations§
impl Freeze for EngineEvent
impl RefUnwindSafe for EngineEvent
impl Send for EngineEvent
impl Sync for EngineEvent
impl Unpin for EngineEvent
impl UnsafeUnpin for EngineEvent
impl UnwindSafe for EngineEvent
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