Struct kvproto::raft_cmdpb::Request[][src]

pub struct Request {
    pub cmd_type: CmdType,
    pub get: SingularPtrField<GetRequest>,
    pub put: SingularPtrField<PutRequest>,
    pub delete: SingularPtrField<DeleteRequest>,
    pub snap: SingularPtrField<SnapRequest>,
    pub prewrite: SingularPtrField<PrewriteRequest>,
    pub delete_range: SingularPtrField<DeleteRangeRequest>,
    pub ingest_sst: SingularPtrField<IngestSstRequest>,
    pub read_index: SingularPtrField<ReadIndexRequest>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

cmd_type: CmdTypeget: SingularPtrField<GetRequest>put: SingularPtrField<PutRequest>delete: SingularPtrField<DeleteRequest>snap: SingularPtrField<SnapRequest>prewrite: SingularPtrField<PrewriteRequest>delete_range: SingularPtrField<DeleteRangeRequest>ingest_sst: SingularPtrField<IngestSstRequest>read_index: SingularPtrField<ReadIndexRequest>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Request[src]

pub fn new() -> Request[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) -> &GetRequest[src]

pub fn clear_get(&mut self)[src]

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

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

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

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

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

pub fn clear_put(&mut self)[src]

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

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

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

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

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

pub fn clear_delete(&mut self)[src]

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

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

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

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

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

pub fn clear_snap(&mut self)[src]

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

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

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

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

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

pub fn clear_prewrite(&mut self)[src]

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

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

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

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

pub fn get_delete_range(&self) -> &DeleteRangeRequest[src]

pub fn clear_delete_range(&mut self)[src]

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

pub fn set_delete_range(&mut self, v: DeleteRangeRequest)[src]

pub fn mut_delete_range(&mut self) -> &mut DeleteRangeRequest[src]

pub fn take_delete_range(&mut self) -> DeleteRangeRequest[src]

pub fn get_ingest_sst(&self) -> &IngestSstRequest[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: IngestSstRequest)[src]

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

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

pub fn get_read_index(&self) -> &ReadIndexRequest[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: ReadIndexRequest)[src]

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

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

Trait Implementations

impl Clear for Request[src]

impl Clone for Request[src]

impl Debug for Request[src]

impl Default for Request[src]

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

impl Message for Request[src]

impl PartialEq<Request> for Request[src]

impl PbPrint for Request[src]

impl ProtobufValue for Request[src]

impl StructuralPartialEq for Request[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

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.