pub struct StreamFrameDecision {
pub correlation_id: String,
pub action: String,
pub body: Option<String>,
}Expand description
Client-to-server reply for a stream frame decision.
Fields§
§correlation_id: String§action: String§body: Option<String>Implementations§
Source§impl StreamFrameDecision
impl StreamFrameDecision
Sourcepub fn continue_frame(correlation_id: impl Into<String>) -> Self
pub fn continue_frame(correlation_id: impl Into<String>) -> Self
Create a CONTINUE decision.
Sourcepub fn modify(correlation_id: impl Into<String>, body: &[u8]) -> Self
pub fn modify(correlation_id: impl Into<String>, body: &[u8]) -> Self
Create a MODIFY decision with replacement bytes.
Sourcepub fn drop_frame(correlation_id: impl Into<String>) -> Self
pub fn drop_frame(correlation_id: impl Into<String>) -> Self
Create a DROP decision.
Trait Implementations§
Source§impl Clone for StreamFrameDecision
impl Clone for StreamFrameDecision
Source§fn clone(&self) -> StreamFrameDecision
fn clone(&self) -> StreamFrameDecision
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 StreamFrameDecision
impl Debug for StreamFrameDecision
Source§impl<'de> Deserialize<'de> for StreamFrameDecision
impl<'de> Deserialize<'de> for StreamFrameDecision
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 StreamFrameDecision
impl RefUnwindSafe for StreamFrameDecision
impl Send for StreamFrameDecision
impl Sync for StreamFrameDecision
impl Unpin for StreamFrameDecision
impl UnsafeUnpin for StreamFrameDecision
impl UnwindSafe for StreamFrameDecision
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