[][src]Struct etcdv3client::pb::WatchResponse

pub struct WatchResponse {
    pub header: Option<ResponseHeader>,
    pub watch_id: i64,
    pub created: bool,
    pub canceled: bool,
    pub compact_revision: i64,
    pub cancel_reason: String,
    pub fragment: bool,
    pub events: Vec<Event>,
}

Fields

header: Option<ResponseHeader>watch_id: i64

watch_id is the ID of the watcher that corresponds to the response.

created: bool

created is set to true if the response is for a create watch request. The client should record the watch_id and expect to receive events for the created watcher from the same stream. All events sent to the created watcher will attach with the same watch_id.

canceled: bool

canceled is set to true if the response is for a cancel watch request. No further events will be sent to the canceled watcher.

compact_revision: i64

compact_revision is set to the minimum index if a watcher tries to watch at a compacted index.

This happens when creating a watcher at a compacted revision or the watcher cannot catch up with the progress of the key-value store.

The client should treat the watcher as canceled and should not try to create any watcher with the same start_revision again.

cancel_reason: String

cancel_reason indicates the reason for canceling the watcher.

fragment: bool

framgment is true if large watch response was split over multiple responses.

events: Vec<Event>

Trait Implementations

impl Clone for WatchResponse[src]

impl Default for WatchResponse[src]

impl PartialEq<WatchResponse> for WatchResponse[src]

impl Debug for WatchResponse[src]

impl StructuralPartialEq for WatchResponse[src]

impl Message for WatchResponse[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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