Struct kvproto::raft_cmdpb::Response[][src]

pub struct Response {
    pub cmd_type: CmdType,
    pub get: SingularPtrField<GetResponse>,
    pub put: SingularPtrField<PutResponse>,
    pub delete: SingularPtrField<DeleteResponse>,
    pub snap: SingularPtrField<SnapResponse>,
    pub prewrite: SingularPtrField<PrewriteResponse>,
    pub delte_range: SingularPtrField<DeleteRangeResponse>,
    pub ingest_sst: SingularPtrField<IngestSstResponse>,
    pub read_index: SingularPtrField<ReadIndexResponse>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

cmd_type: CmdTypeget: SingularPtrField<GetResponse>put: SingularPtrField<PutResponse>delete: SingularPtrField<DeleteResponse>snap: SingularPtrField<SnapResponse>prewrite: SingularPtrField<PrewriteResponse>delte_range: SingularPtrField<DeleteRangeResponse>ingest_sst: SingularPtrField<IngestSstResponse>read_index: SingularPtrField<ReadIndexResponse>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Response[src]

pub fn new() -> Response[src]

pub fn get_cmd_type(&self) -> CmdType[src]

pub fn clear_cmd_type(&mut self)[src]

pub fn set_cmd_type(&mut self, v: CmdType)[src]

pub fn get_get(&self) -> &GetResponse[src]

pub fn clear_get(&mut self)[src]

pub fn has_get(&self) -> bool[src]

pub fn set_get(&mut self, v: GetResponse)[src]

pub fn mut_get(&mut self) -> &mut GetResponse[src]

pub fn take_get(&mut self) -> GetResponse[src]

pub fn get_put(&self) -> &PutResponse[src]

pub fn clear_put(&mut self)[src]

pub fn has_put(&self) -> bool[src]

pub fn set_put(&mut self, v: PutResponse)[src]

pub fn mut_put(&mut self) -> &mut PutResponse[src]

pub fn take_put(&mut self) -> PutResponse[src]

pub fn get_delete(&self) -> &DeleteResponse[src]

pub fn clear_delete(&mut self)[src]

pub fn has_delete(&self) -> bool[src]

pub fn set_delete(&mut self, v: DeleteResponse)[src]

pub fn mut_delete(&mut self) -> &mut DeleteResponse[src]

pub fn take_delete(&mut self) -> DeleteResponse[src]

pub fn get_snap(&self) -> &SnapResponse[src]

pub fn clear_snap(&mut self)[src]

pub fn has_snap(&self) -> bool[src]

pub fn set_snap(&mut self, v: SnapResponse)[src]

pub fn mut_snap(&mut self) -> &mut SnapResponse[src]

pub fn take_snap(&mut self) -> SnapResponse[src]

pub fn get_prewrite(&self) -> &PrewriteResponse[src]

pub fn clear_prewrite(&mut self)[src]

pub fn has_prewrite(&self) -> bool[src]

pub fn set_prewrite(&mut self, v: PrewriteResponse)[src]

pub fn mut_prewrite(&mut self) -> &mut PrewriteResponse[src]

pub fn take_prewrite(&mut self) -> PrewriteResponse[src]

pub fn get_delte_range(&self) -> &DeleteRangeResponse[src]

pub fn clear_delte_range(&mut self)[src]

pub fn has_delte_range(&self) -> bool[src]

pub fn set_delte_range(&mut self, v: DeleteRangeResponse)[src]

pub fn mut_delte_range(&mut self) -> &mut DeleteRangeResponse[src]

pub fn take_delte_range(&mut self) -> DeleteRangeResponse[src]

pub fn get_ingest_sst(&self) -> &IngestSstResponse[src]

pub fn clear_ingest_sst(&mut self)[src]

pub fn has_ingest_sst(&self) -> bool[src]

pub fn set_ingest_sst(&mut self, v: IngestSstResponse)[src]

pub fn mut_ingest_sst(&mut self) -> &mut IngestSstResponse[src]

pub fn take_ingest_sst(&mut self) -> IngestSstResponse[src]

pub fn get_read_index(&self) -> &ReadIndexResponse[src]

pub fn clear_read_index(&mut self)[src]

pub fn has_read_index(&self) -> bool[src]

pub fn set_read_index(&mut self, v: ReadIndexResponse)[src]

pub fn mut_read_index(&mut self) -> &mut ReadIndexResponse[src]

pub fn take_read_index(&mut self) -> ReadIndexResponse[src]

Trait Implementations

impl Clear for Response[src]

impl Clone for Response[src]

impl Debug for Response[src]

impl Default for Response[src]

impl<'a> Default for &'a Response[src]

impl Message for Response[src]

impl PartialEq<Response> for Response[src]

impl PbPrint for Response[src]

impl ProtobufValue for Response[src]

impl StructuralPartialEq for Response[src]

Auto Trait Implementations

impl RefUnwindSafe for Response

impl Send for Response

impl Sync for Response

impl Unpin for Response

impl UnwindSafe for Response

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.