Struct kvproto::coprocessor::Request[][src]

pub struct Request {
    pub context: SingularPtrField<Context>,
    pub tp: i64,
    pub data: Vec<u8>,
    pub start_ts: u64,
    pub ranges: RepeatedField<KeyRange>,
    pub is_cache_enabled: bool,
    pub cache_if_match_version: u64,
    pub schema_ver: i64,
    pub is_trace_enabled: bool,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

context: SingularPtrField<Context>tp: i64data: Vec<u8>start_ts: u64ranges: RepeatedField<KeyRange>is_cache_enabled: boolcache_if_match_version: u64schema_ver: i64is_trace_enabled: boolunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Request[src]

pub fn new() -> Request[src]

pub fn get_context(&self) -> &Context[src]

pub fn clear_context(&mut self)[src]

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

pub fn set_context(&mut self, v: Context)[src]

pub fn mut_context(&mut self) -> &mut Context[src]

pub fn take_context(&mut self) -> Context[src]

pub fn get_tp(&self) -> i64[src]

pub fn clear_tp(&mut self)[src]

pub fn set_tp(&mut self, v: i64)[src]

pub fn get_data(&self) -> &[u8][src]

pub fn clear_data(&mut self)[src]

pub fn set_data(&mut self, v: Vec<u8>)[src]

pub fn mut_data(&mut self) -> &mut Vec<u8>[src]

pub fn take_data(&mut self) -> Vec<u8>[src]

pub fn get_start_ts(&self) -> u64[src]

pub fn clear_start_ts(&mut self)[src]

pub fn set_start_ts(&mut self, v: u64)[src]

pub fn get_ranges(&self) -> &[KeyRange][src]

pub fn clear_ranges(&mut self)[src]

pub fn set_ranges(&mut self, v: RepeatedField<KeyRange>)[src]

pub fn mut_ranges(&mut self) -> &mut RepeatedField<KeyRange>[src]

pub fn take_ranges(&mut self) -> RepeatedField<KeyRange>[src]

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

pub fn clear_is_cache_enabled(&mut self)[src]

pub fn set_is_cache_enabled(&mut self, v: bool)[src]

pub fn get_cache_if_match_version(&self) -> u64[src]

pub fn clear_cache_if_match_version(&mut self)[src]

pub fn set_cache_if_match_version(&mut self, v: u64)[src]

pub fn get_schema_ver(&self) -> i64[src]

pub fn clear_schema_ver(&mut self)[src]

pub fn set_schema_ver(&mut self, v: i64)[src]

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

pub fn clear_is_trace_enabled(&mut self)[src]

pub fn set_is_trace_enabled(&mut self, v: bool)[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.