Struct grpc_etcd::rpc::WatchResponse
[−]
[src]
pub struct WatchResponse { pub header: SingularPtrField<ResponseHeader>, pub watch_id: i64, pub created: bool, pub canceled: bool, pub compact_revision: i64, pub cancel_reason: String, pub events: RepeatedField<Event>, // some fields omitted }
Fields
header: SingularPtrField<ResponseHeader>
watch_id: i64
created: bool
canceled: bool
compact_revision: i64
cancel_reason: String
events: RepeatedField<Event>
Methods
impl WatchResponse
[src]
fn new() -> WatchResponse
fn default_instance() -> &'static WatchResponse
fn clear_header(&mut self)
fn has_header(&self) -> bool
fn set_header(&mut self, v: ResponseHeader)
fn mut_header(&mut self) -> &mut ResponseHeader
fn take_header(&mut self) -> ResponseHeader
fn get_header(&self) -> &ResponseHeader
fn clear_watch_id(&mut self)
fn set_watch_id(&mut self, v: i64)
fn get_watch_id(&self) -> i64
fn clear_created(&mut self)
fn set_created(&mut self, v: bool)
fn get_created(&self) -> bool
fn clear_canceled(&mut self)
fn set_canceled(&mut self, v: bool)
fn get_canceled(&self) -> bool
fn clear_compact_revision(&mut self)
fn set_compact_revision(&mut self, v: i64)
fn get_compact_revision(&self) -> i64
fn clear_cancel_reason(&mut self)
fn set_cancel_reason(&mut self, v: String)
fn mut_cancel_reason(&mut self) -> &mut String
fn take_cancel_reason(&mut self) -> String
fn get_cancel_reason(&self) -> &str
fn clear_events(&mut self)
fn set_events(&mut self, v: RepeatedField<Event>)
fn mut_events(&mut self) -> &mut RepeatedField<Event>
fn take_events(&mut self) -> RepeatedField<Event>
fn get_events(&self) -> &[Event]
Trait Implementations
impl PartialEq for WatchResponse
[src]
fn eq(&self, __arg_0: &WatchResponse) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &WatchResponse) -> bool
This method tests for !=
.
impl Clone for WatchResponse
[src]
fn clone(&self) -> WatchResponse
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for WatchResponse
[src]
fn default() -> WatchResponse
Returns the "default value" for a type. Read more
impl Sync for WatchResponse
[src]
impl Message for WatchResponse
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> Result<(), ProtobufError>
&self,
w: &mut Write
) -> Result<(), ProtobufError>