Struct kvproto::coprocessor::Response[][src]

pub struct Response {
    pub data: Vec<u8>,
    pub region_error: SingularPtrField<Error>,
    pub locked: SingularPtrField<LockInfo>,
    pub other_error: String,
    pub range: SingularPtrField<KeyRange>,
    pub exec_details: SingularPtrField<ExecDetails>,
    pub exec_details_v2: SingularPtrField<ExecDetailsV2>,
    pub is_cache_hit: bool,
    pub cache_last_version: u64,
    pub can_be_cached: bool,
    pub spans: RepeatedField<SpanSet>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

data: Vec<u8>region_error: SingularPtrField<Error>locked: SingularPtrField<LockInfo>other_error: Stringrange: SingularPtrField<KeyRange>exec_details: SingularPtrField<ExecDetails>exec_details_v2: SingularPtrField<ExecDetailsV2>is_cache_hit: boolcache_last_version: u64can_be_cached: boolspans: RepeatedField<SpanSet>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Response[src]

pub fn new() -> Response[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_region_error(&self) -> &Error[src]

pub fn clear_region_error(&mut self)[src]

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

pub fn set_region_error(&mut self, v: Error)[src]

pub fn mut_region_error(&mut self) -> &mut Error[src]

pub fn take_region_error(&mut self) -> Error[src]

pub fn get_locked(&self) -> &LockInfo[src]

pub fn clear_locked(&mut self)[src]

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

pub fn set_locked(&mut self, v: LockInfo)[src]

pub fn mut_locked(&mut self) -> &mut LockInfo[src]

pub fn take_locked(&mut self) -> LockInfo[src]

pub fn get_other_error(&self) -> &str[src]

pub fn clear_other_error(&mut self)[src]

pub fn set_other_error(&mut self, v: String)[src]

pub fn mut_other_error(&mut self) -> &mut String[src]

pub fn take_other_error(&mut self) -> String[src]

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

pub fn clear_range(&mut self)[src]

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

pub fn set_range(&mut self, v: KeyRange)[src]

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

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

pub fn get_exec_details(&self) -> &ExecDetails[src]

pub fn clear_exec_details(&mut self)[src]

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

pub fn set_exec_details(&mut self, v: ExecDetails)[src]

pub fn mut_exec_details(&mut self) -> &mut ExecDetails[src]

pub fn take_exec_details(&mut self) -> ExecDetails[src]

pub fn get_exec_details_v2(&self) -> &ExecDetailsV2[src]

pub fn clear_exec_details_v2(&mut self)[src]

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

pub fn set_exec_details_v2(&mut self, v: ExecDetailsV2)[src]

pub fn mut_exec_details_v2(&mut self) -> &mut ExecDetailsV2[src]

pub fn take_exec_details_v2(&mut self) -> ExecDetailsV2[src]

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

pub fn clear_is_cache_hit(&mut self)[src]

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

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

pub fn clear_cache_last_version(&mut self)[src]

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

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

pub fn clear_can_be_cached(&mut self)[src]

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

pub fn get_spans(&self) -> &[SpanSet][src]

pub fn clear_spans(&mut self)[src]

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

pub fn mut_spans(&mut self) -> &mut RepeatedField<SpanSet>[src]

pub fn take_spans(&mut self) -> RepeatedField<SpanSet>[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.