pub enum SubscriptionFrame {
Open {
tx_key: TxKey,
columns: Vec<ColumnDescription>,
},
Delta {
tx_key: TxKey,
rows: Vec<(Vec<DataType>, i64)>,
},
Error(ErrorResponseBody),
}Expand description
One frame in a subscription response stream. Frames are bare, self-delimiting
msgpack maps tagged by a kind discriminator.
Variants§
Open
First frame: registration tx_key and (internal) column schema.
Delta
One transaction’s z-set changes as (values, weight) rows.
Error(ErrorResponseBody)
Terminal error raised after the stream has started.
Trait Implementations§
Source§impl Clone for SubscriptionFrame
impl Clone for SubscriptionFrame
Source§fn clone(&self) -> SubscriptionFrame
fn clone(&self) -> SubscriptionFrame
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 SubscriptionFrame
impl Debug for SubscriptionFrame
Source§impl PartialEq for SubscriptionFrame
impl PartialEq for SubscriptionFrame
Source§fn eq(&self, other: &SubscriptionFrame) -> bool
fn eq(&self, other: &SubscriptionFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscriptionFrame
Auto Trait Implementations§
impl Freeze for SubscriptionFrame
impl RefUnwindSafe for SubscriptionFrame
impl Send for SubscriptionFrame
impl Sync for SubscriptionFrame
impl Unpin for SubscriptionFrame
impl UnsafeUnpin for SubscriptionFrame
impl UnwindSafe for SubscriptionFrame
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more