Enum siderite::protocol::ServerMessage[][src]

pub enum ServerMessage {
Show variants Connected { session: String, }, Failed { version: String, }, Ping { id: Option<String>, }, Pong { id: Option<String>, }, Result(MethodResponse), Nosub { id: String, error: Option<Value>, }, Updated { methods: Vec<String>, }, Added { collection: String, id: String, fields: Option<Value>, }, Changed { collection: String, id: String, fields: Option<Value>, cleared: Option<Vec<String>>, }, Removed { collection: String, id: String, }, Ready { subs: Vec<String>, }, AddedBefore { collection: String, id: String, fields: Option<Value>, before: Option<String>, }, MovedBefore { before: Option<String>, },
}

DDP messages from server to client

Variants

Connected

Fields of Connected

session: String
Failed

Fields of Failed

version: String
Ping

Fields of Ping

id: Option<String>
Pong

Fields of Pong

id: Option<String>

The result of a method call

Nosub

Sent after unsubscribing, or to signal a subscription failure.

Fields of Nosub

id: Stringerror: Option<Value>
Updated

Signals progress on one or several method calls.

Fields of Updated

methods: Vec<String>
Added

Fields of Added

collection: Stringid: Stringfields: Option<Value>
Changed

Fields of Changed

collection: Stringid: Stringfields: Option<Value>cleared: Option<Vec<String>>
Removed

Fields of Removed

collection: Stringid: String
Ready

Fields of Ready

subs: Vec<String>
AddedBefore

Fields of AddedBefore

collection: Stringid: Stringfields: Option<Value>before: Option<String>
MovedBefore

Fields of MovedBefore

before: Option<String>

Implementations

impl ServerMessage[src]

pub fn pretty(&self) -> String[src]

Trait Implementations

impl Debug for ServerMessage[src]

impl<'de> Deserialize<'de> for ServerMessage[src]

impl Eq for ServerMessage[src]

impl PartialEq<ServerMessage> for ServerMessage[src]

impl Serialize for ServerMessage[src]

impl StructuralEq for ServerMessage[src]

impl StructuralPartialEq for ServerMessage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,