pub enum EventData {
ControlMessage {
direction: Direction,
message_type: u64,
message: Value,
raw: Option<Vec<u8>>,
},
StreamOpened {
stream_id: u64,
direction: Direction,
stream_type: StreamType,
},
StreamClosed {
stream_id: u64,
error_code: u64,
},
ObjectHeader {
stream_id: u64,
group: u64,
object: u64,
publisher_priority: u64,
object_status: u64,
},
ObjectPayload {
stream_id: u64,
group: u64,
object: u64,
size: u64,
payload: Option<Vec<u8>>,
},
StateChange {
from: String,
to: String,
},
Error {
error_code: u64,
reason: String,
},
Annotation {
label: String,
data: Value,
},
}Expand description
Event-specific payload, discriminated by type.
Variants§
ControlMessage
A control-stream message was sent or received (event type 0).
Fields
StreamOpened
A QUIC stream was opened (event type 1).
Fields
§
stream_type: StreamTypeStream type.
StreamClosed
A QUIC stream was closed (event type 2).
ObjectHeader
An object header was parsed from a data stream (event type 3).
Fields
ObjectPayload
Object payload bytes were received or sent (event type 4).
Fields
StateChange
Session FSM phase transition (event type 5).
Error
Protocol or transport error (event type 6).
Annotation
User-defined annotation (event type 7).
Trait Implementations§
impl StructuralPartialEq for EventData
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnsafeUnpin for EventData
impl UnwindSafe for EventData
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