Struct grpcio_health::proto::HealthCheckRequest[][src]

pub struct HealthCheckRequest {
    pub service: String,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}
Expand description

Generated files are compatible only with the same version of protobuf runtime.

Fields

service: Stringunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl HealthCheckRequest[src]

pub fn new() -> HealthCheckRequest[src]

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

pub fn clear_service(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for HealthCheckRequest[src]

fn clear(&mut self)[src]

Clear this make, make it equivalent to newly created object.

impl Clone for HealthCheckRequest[src]

fn clone(&self) -> HealthCheckRequest[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for HealthCheckRequest[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for HealthCheckRequest[src]

fn default() -> HealthCheckRequest[src]

Returns the “default value” for a type. Read more

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

fn default() -> &'a HealthCheckRequest[src]

Returns the “default value” for a type. Read more

impl Message for HealthCheckRequest[src]

fn is_initialized(&self) -> bool[src]

True iff all required fields are initialized. Always returns true for protobuf 3. Read more

fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>[src]

Update this message object with fields read from given stream.

fn compute_size(&self) -> u32[src]

Compute and cache size of this message and all nested messages

fn write_to_with_cached_sizes(
    &self,
    os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]

Write message to the stream. Read more

fn get_cached_size(&self) -> u32[src]

Get size previously computed by compute_size.

fn get_unknown_fields(&self) -> &UnknownFields[src]

Get a reference to unknown fields.

fn mut_unknown_fields(&mut self) -> &mut UnknownFields[src]

Get a mutable reference to unknown fields.

fn as_any(&self) -> &dyn Any[src]

View self as Any.

fn as_any_mut(&mut self) -> &mut dyn Any[src]

View self as mutable Any.

fn into_any(self: Box<Self>) -> Box<dyn Any>[src]

Convert boxed self to boxed Any.

fn descriptor(&self) -> &'static MessageDescriptor[src]

Message descriptor for this message, used for reflection.

fn new() -> HealthCheckRequest[src]

Create an empty message object. Read more

fn descriptor_static() -> &'static MessageDescriptor[src]

Get message descriptor for message type. Read more

fn default_instance() -> &'static HealthCheckRequest[src]

Return a pointer to default immutable message with static lifetime. Read more

fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>[src]

Parse message from stream.

fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>[src]

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>[src]

Update this message object with fields read from given stream.

fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>[src]

Parse message from reader. Parse stops on EOF or when error encountered. Read more

fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>[src]

Parse message from byte array.

fn check_initialized(&self) -> Result<(), ProtobufError>[src]

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>[src]

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>[src]

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>[src]

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(
    &self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId[src]

Get type id for downcasting.

impl PartialEq<HealthCheckRequest> for HealthCheckRequest[src]

fn eq(&self, other: &HealthCheckRequest) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &HealthCheckRequest) -> bool[src]

This method tests for !=.

impl ProtobufValue for HealthCheckRequest[src]

fn as_ref(&self) -> ProtobufValueRef<'_>[src]

As ref

fn as_any(&self) -> &(dyn Any + 'static)[src]

Convert to Any

fn is_non_zero(&self) -> bool[src]

Is value non-zero?

fn as_ref_copy(&self) -> ReflectValueRef<'static>[src]

Return ProtobufValueRef if self is Copy. Read more

impl StructuralPartialEq for HealthCheckRequest[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.