Struct kvproto::raft_cmdpb::RaftCmdRequest[][src]

pub struct RaftCmdRequest {
    pub header: SingularPtrField<RaftRequestHeader>,
    pub requests: RepeatedField<Request>,
    pub admin_request: SingularPtrField<AdminRequest>,
    pub status_request: SingularPtrField<StatusRequest>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

header: SingularPtrField<RaftRequestHeader>requests: RepeatedField<Request>admin_request: SingularPtrField<AdminRequest>status_request: SingularPtrField<StatusRequest>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftCmdRequest[src]

pub fn new() -> RaftCmdRequest[src]

pub fn get_header(&self) -> &RaftRequestHeader[src]

pub fn clear_header(&mut self)[src]

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

pub fn set_header(&mut self, v: RaftRequestHeader)[src]

pub fn mut_header(&mut self) -> &mut RaftRequestHeader[src]

pub fn take_header(&mut self) -> RaftRequestHeader[src]

pub fn get_requests(&self) -> &[Request][src]

pub fn clear_requests(&mut self)[src]

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

pub fn mut_requests(&mut self) -> &mut RepeatedField<Request>[src]

pub fn take_requests(&mut self) -> RepeatedField<Request>[src]

pub fn get_admin_request(&self) -> &AdminRequest[src]

pub fn clear_admin_request(&mut self)[src]

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

pub fn set_admin_request(&mut self, v: AdminRequest)[src]

pub fn mut_admin_request(&mut self) -> &mut AdminRequest[src]

pub fn take_admin_request(&mut self) -> AdminRequest[src]

pub fn get_status_request(&self) -> &StatusRequest[src]

pub fn clear_status_request(&mut self)[src]

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

pub fn set_status_request(&mut self, v: StatusRequest)[src]

pub fn mut_status_request(&mut self) -> &mut StatusRequest[src]

pub fn take_status_request(&mut self) -> StatusRequest[src]

Trait Implementations

impl Clear for RaftCmdRequest[src]

impl Clone for RaftCmdRequest[src]

impl Debug for RaftCmdRequest[src]

impl Default for RaftCmdRequest[src]

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

impl Message for RaftCmdRequest[src]

impl PartialEq<RaftCmdRequest> for RaftCmdRequest[src]

impl PbPrint for RaftCmdRequest[src]

impl ProtobufValue for RaftCmdRequest[src]

impl StructuralPartialEq for RaftCmdRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftCmdRequest

impl Send for RaftCmdRequest

impl Sync for RaftCmdRequest

impl Unpin for RaftCmdRequest

impl UnwindSafe for RaftCmdRequest

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.