Skip to main content

Frame

Enum Frame 

Source
pub enum Frame {
Show 14 variants ReqHeader { client_id: String, schema_version: i32, }, PushCommit { client_commit_id: String, operations: Vec<Operation>, }, PullHeader { limit_commits: i32, limit_snapshot_rows: i32, max_snapshot_pages: i32, accept: u8, }, Subscription { id: String, table: String, scopes: Vec<(String, Vec<String>)>, params: Option<RawJson>, cursor: i64, bootstrap_state: Option<RawJson>, }, RespHeader { required_schema_version: Option<i32>, latest_schema_version: Option<i32>, }, Lease { lease_id: String, expires_at_ms: i64, }, PushResult { client_commit_id: String, status: PushStatus, commit_seq: Option<i64>, results: Vec<OpResult>, }, SubStart { id: String, status: SubStatus, reason_code: String, effective_scopes: Vec<(String, Vec<String>)>, bootstrap: bool, }, Commit { commit_seq: i64, created_at_ms: i64, actor_id: String, tables: Vec<String>, changes: Vec<Change>, }, SegmentRef { segment_id: String, media_type: MediaType, table: String, byte_length: i64, row_count: i64, as_of_commit_seq: i64, scope_digest: String, row_cursor: Option<String>, next_row_cursor: Option<String>, url: Option<String>, url_expires_at_ms: Option<i64>, }, SegmentInline { payload: Vec<u8>, }, SubEnd { next_cursor: i64, bootstrap_state: Option<RawJson>, }, Error { code: String, message: String, category: String, retryable: bool, recommended_action: String, details: Option<RawJson>, }, Unknown { frame_type: u8, payload: Vec<u8>, },
}

Variants§

§

ReqHeader

Fields

§client_id: String
§schema_version: i32
§

PushCommit

Fields

§client_commit_id: String
§operations: Vec<Operation>
§

PullHeader

Fields

§limit_commits: i32
§limit_snapshot_rows: i32
§max_snapshot_pages: i32
§accept: u8
§

Subscription

Fields

§table: String
§scopes: Vec<(String, Vec<String>)>
§params: Option<RawJson>
§cursor: i64
§bootstrap_state: Option<RawJson>
§

RespHeader

Fields

§required_schema_version: Option<i32>
§latest_schema_version: Option<i32>
§

Lease

§7.3.2: a server-issued auth lease delivered to the client (opaque).

Fields

§lease_id: String
§expires_at_ms: i64
§

PushResult

Fields

§client_commit_id: String
§status: PushStatus
§commit_seq: Option<i64>
§results: Vec<OpResult>
§

SubStart

Fields

§status: SubStatus
§reason_code: String
§effective_scopes: Vec<(String, Vec<String>)>
§bootstrap: bool
§

Commit

Fields

§commit_seq: i64
§created_at_ms: i64
§actor_id: String
§tables: Vec<String>
§changes: Vec<Change>
§

SegmentRef

Fields

§segment_id: String
§media_type: MediaType
§table: String
§byte_length: i64
§row_count: i64
§as_of_commit_seq: i64
§scope_digest: String
§row_cursor: Option<String>
§next_row_cursor: Option<String>
§url_expires_at_ms: Option<i64>
§

SegmentInline

Raw payload bytes, validated at decode as a structurally valid rows segment (§5.7) and preserved verbatim for re-encoding.

Fields

§payload: Vec<u8>
§

SubEnd

Fields

§next_cursor: i64
§bootstrap_state: Option<RawJson>
§

Error

Fields

§code: String
§message: String
§category: String
§retryable: bool
§recommended_action: String
§details: Option<RawJson>
§

Unknown

Unknown frame preserved by the §1.2 rule-2 skip rule: never dropped, re-encoded byte-for-byte in its original position.

Fields

§frame_type: u8
§payload: Vec<u8>

Trait Implementations§

Source§

impl Clone for Frame

Source§

fn clone(&self) -> Frame

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Frame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Frame

Source§

fn eq(&self, other: &Frame) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Frame

Auto Trait Implementations§

§

impl Freeze for Frame

§

impl RefUnwindSafe for Frame

§

impl Send for Frame

§

impl Sync for Frame

§

impl Unpin for Frame

§

impl UnsafeUnpin for Frame

§

impl UnwindSafe for Frame

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.