pub enum TypedMessage {
Envelope(Envelope),
Event(EventMessage),
Status(StatusResponse),
Value(Value),
}Expand description
Typed decoded message (Go interface{} return parity).
Variants§
Envelope(Envelope)
Protocol-1 envelope.
Event(EventMessage)
Streaming event frame (from event or projected next).
Status(StatusResponse)
Status frame.
Value(Value)
Raw value (unknown type or event_batch).
Implementations§
Source§impl TypedMessage
impl TypedMessage
Sourcepub fn from_value(value: Value) -> Self
pub fn from_value(value: Value) -> Self
Dispatch a decoded JSON value into the typed variant.
Trait Implementations§
Source§impl Clone for TypedMessage
impl Clone for TypedMessage
Source§fn clone(&self) -> TypedMessage
fn clone(&self) -> TypedMessage
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 TypedMessage
impl Debug for TypedMessage
Source§impl PartialEq for TypedMessage
impl PartialEq for TypedMessage
impl StructuralPartialEq for TypedMessage
Auto Trait Implementations§
impl Freeze for TypedMessage
impl RefUnwindSafe for TypedMessage
impl Send for TypedMessage
impl Sync for TypedMessage
impl Unpin for TypedMessage
impl UnsafeUnpin for TypedMessage
impl UnwindSafe for TypedMessage
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