pub enum FlowUpdate {
Full(Box<Flow>),
WebSocketMessage {
flow_id: String,
message: WebSocketMessage,
},
HttpBody {
flow_id: String,
direction: Direction,
body: BodyData,
},
}Expand description
Enum for Incremental Flow Updates to avoid cloning the entire Flow object
Variants§
Full(Box<Flow>)
Full Flow update (e.g., initial creation, request/response headers)
WebSocketMessage
Incremental WebSocket Message
HttpBody
Incremental HTTP Body Update (Request or Response)
Trait Implementations§
Source§impl Clone for FlowUpdate
impl Clone for FlowUpdate
Source§fn clone(&self) -> FlowUpdate
fn clone(&self) -> FlowUpdate
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 FlowUpdate
impl Debug for FlowUpdate
Source§impl<'de> Deserialize<'de> for FlowUpdate
impl<'de> Deserialize<'de> for FlowUpdate
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 FlowUpdate
impl !RefUnwindSafe for FlowUpdate
impl Send for FlowUpdate
impl Sync for FlowUpdate
impl Unpin for FlowUpdate
impl UnsafeUnpin for FlowUpdate
impl !UnwindSafe for FlowUpdate
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