Skip to content

enum

Event

pub enum Event {
    Ack,
    Ping,
    Next(Value),
    Error(String),
    Complete,
    Other,
}

A message from the server.

Variants

Ack

Ack

connection_ack: the server accepted the connection.

Ping

Ping

ping: answer with a pong.

Next

Next(Value)

A result, shaped like a query's response.

Error

Error(String)

The subscription failed, with why.

Complete

Complete

complete: the subscription ended.

Other

Other

A message this client doesn't use.

Trait implementations