Enum sonic::SonicMessage
[−]
[src]
pub enum SonicMessage { Acknowledge, StreamStarted(String), QueryMsg(Query), AuthenticateMsg(Authenticate), TypeMetadata(Vec<(String, Value)>), QueryProgress { status: QueryStatus, progress: f64, total: Option<f64>, units: Option<String>, }, OutputChunk(Vec<Value>), StreamCompleted(Option<String>, String), }
Variants
Acknowledge
StreamStarted(String)
QueryMsg(Query)
AuthenticateMsg(Authenticate)
TypeMetadata(Vec<(String, Value)>)
QueryProgress
Fields of QueryProgress
status: QueryStatus | |
progress: f64 | |
total: Option<f64> | |
units: Option<String> |
OutputChunk(Vec<Value>)
StreamCompleted(Option<String>, String)
Methods
impl SonicMessage
[src]
fn complete<T>(e: Result<T>, trace_id: String) -> SonicMessage
[src]
fn into_json(self) -> Value
[src]
fn from_slice(slice: &[u8]) -> Result<SonicMessage>
[src]
fn from_bytes(buf: Vec<u8>) -> Result<SonicMessage>
[src]
fn into_bytes(self) -> Result<Vec<u8>>
[src]
Trait Implementations
impl Debug for SonicMessage
[src]
impl Clone for SonicMessage
[src]
fn clone(&self) -> SonicMessage
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more