[][src]Struct etcdv3client::pb::AlarmRequest

pub struct AlarmRequest {
    pub action: i32,
    pub member_id: u64,
    pub alarm: i32,
}

Fields

action: i32

action is the kind of alarm request to issue. The action may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a raised alarm.

member_id: u64

memberID is the ID of the member associated with the alarm. If memberID is 0, the alarm request covers all members.

alarm: i32

alarm is the type of alarm to consider for this request.

Methods

impl AlarmRequest[src]

pub fn action(&self) -> AlarmAction[src]

pub fn set_action(&mut self, value: AlarmAction)[src]

pub fn alarm(&self) -> AlarmType[src]

pub fn set_alarm(&mut self, value: AlarmType)[src]

Trait Implementations

impl Clone for AlarmRequest[src]

impl Default for AlarmRequest[src]

impl PartialEq<AlarmRequest> for AlarmRequest[src]

impl Debug for AlarmRequest[src]

impl StructuralPartialEq for AlarmRequest[src]

impl Message for AlarmRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoRequest<T> for T[src]