pub struct WebSocketFrameEvent {
pub correlation_id: String,
pub opcode: String,
pub data: String,
pub client_to_server: bool,
pub frame_index: u64,
pub fin: bool,
pub route_id: Option<String>,
pub client_ip: String,
}Expand description
WebSocket frame event
Sent to agents after a WebSocket upgrade when frame inspection is enabled. Each frame is sent individually for inspection.
Fields§
§correlation_id: StringCorrelation ID (same as the original HTTP upgrade request)
opcode: StringFrame opcode: “text”, “binary”, “ping”, “pong”, “close”, “continuation”
data: StringFrame payload (base64 encoded for JSON transport)
client_to_server: boolDirection: true = client->server, false = server->client
frame_index: u64Frame index for this connection (0-based, per direction)
fin: boolFIN bit - true if final frame of message (for fragmented messages)
route_id: Option<String>Route ID
client_ip: StringClient IP
Trait Implementations§
Source§impl Clone for WebSocketFrameEvent
impl Clone for WebSocketFrameEvent
Source§fn clone(&self) -> WebSocketFrameEvent
fn clone(&self) -> WebSocketFrameEvent
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 WebSocketFrameEvent
impl Debug for WebSocketFrameEvent
Source§impl<'de> Deserialize<'de> for WebSocketFrameEvent
impl<'de> Deserialize<'de> for WebSocketFrameEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebSocketFrameEvent
impl RefUnwindSafe for WebSocketFrameEvent
impl Send for WebSocketFrameEvent
impl Sync for WebSocketFrameEvent
impl Unpin for WebSocketFrameEvent
impl UnwindSafe for WebSocketFrameEvent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request