Struct Status

Source
pub struct Status {
Show 19 fields pub version: String, pub bytes_read: u64, pub bytes_written: u64, pub bytes_read_rate: f32, pub bytes_written_rate: f32, pub rpcs_executed: u64, pub rpc_rate: f32, pub one_rpc_per_update: bool, pub max_time_per_update: u32, pub adaptive_rate_control: bool, pub blocking_recv: bool, pub recv_timeout: u32, pub time_per_rpc_update: f32, pub poll_time_per_rpc_update: f32, pub exec_time_per_rpc_update: f32, pub stream_rpcs: u32, pub stream_rpcs_executed: u64, pub stream_rpc_rate: f32, pub time_per_stream_update: f32, /* private fields */
}

Fields§

§version: String§bytes_read: u64§bytes_written: u64§bytes_read_rate: f32§bytes_written_rate: f32§rpcs_executed: u64§rpc_rate: f32§one_rpc_per_update: bool§max_time_per_update: u32§adaptive_rate_control: bool§blocking_recv: bool§recv_timeout: u32§time_per_rpc_update: f32§poll_time_per_rpc_update: f32§exec_time_per_rpc_update: f32§stream_rpcs: u32§stream_rpcs_executed: u64§stream_rpc_rate: f32§time_per_stream_update: f32

Implementations§

Source§

impl Status

Source

pub fn new() -> Status

Source

pub fn default_instance() -> &'static Status

Source

pub fn clear_version(&mut self)

Source

pub fn set_version(&mut self, v: String)

Source

pub fn mut_version(&mut self) -> &mut String

Source

pub fn take_version(&mut self) -> String

Source

pub fn get_version(&self) -> &str

Source

pub fn clear_bytes_read(&mut self)

Source

pub fn set_bytes_read(&mut self, v: u64)

Source

pub fn get_bytes_read(&self) -> u64

Source

pub fn clear_bytes_written(&mut self)

Source

pub fn set_bytes_written(&mut self, v: u64)

Source

pub fn get_bytes_written(&self) -> u64

Source

pub fn clear_bytes_read_rate(&mut self)

Source

pub fn set_bytes_read_rate(&mut self, v: f32)

Source

pub fn get_bytes_read_rate(&self) -> f32

Source

pub fn clear_bytes_written_rate(&mut self)

Source

pub fn set_bytes_written_rate(&mut self, v: f32)

Source

pub fn get_bytes_written_rate(&self) -> f32

Source

pub fn clear_rpcs_executed(&mut self)

Source

pub fn set_rpcs_executed(&mut self, v: u64)

Source

pub fn get_rpcs_executed(&self) -> u64

Source

pub fn clear_rpc_rate(&mut self)

Source

pub fn set_rpc_rate(&mut self, v: f32)

Source

pub fn get_rpc_rate(&self) -> f32

Source

pub fn clear_one_rpc_per_update(&mut self)

Source

pub fn set_one_rpc_per_update(&mut self, v: bool)

Source

pub fn get_one_rpc_per_update(&self) -> bool

Source

pub fn clear_max_time_per_update(&mut self)

Source

pub fn set_max_time_per_update(&mut self, v: u32)

Source

pub fn get_max_time_per_update(&self) -> u32

Source

pub fn clear_adaptive_rate_control(&mut self)

Source

pub fn set_adaptive_rate_control(&mut self, v: bool)

Source

pub fn get_adaptive_rate_control(&self) -> bool

Source

pub fn clear_blocking_recv(&mut self)

Source

pub fn set_blocking_recv(&mut self, v: bool)

Source

pub fn get_blocking_recv(&self) -> bool

Source

pub fn clear_recv_timeout(&mut self)

Source

pub fn set_recv_timeout(&mut self, v: u32)

Source

pub fn get_recv_timeout(&self) -> u32

Source

pub fn clear_time_per_rpc_update(&mut self)

Source

pub fn set_time_per_rpc_update(&mut self, v: f32)

Source

pub fn get_time_per_rpc_update(&self) -> f32

Source

pub fn clear_poll_time_per_rpc_update(&mut self)

Source

pub fn set_poll_time_per_rpc_update(&mut self, v: f32)

Source

pub fn get_poll_time_per_rpc_update(&self) -> f32

Source

pub fn clear_exec_time_per_rpc_update(&mut self)

Source

pub fn set_exec_time_per_rpc_update(&mut self, v: f32)

Source

pub fn get_exec_time_per_rpc_update(&self) -> f32

Source

pub fn clear_stream_rpcs(&mut self)

Source

pub fn set_stream_rpcs(&mut self, v: u32)

Source

pub fn get_stream_rpcs(&self) -> u32

Source

pub fn clear_stream_rpcs_executed(&mut self)

Source

pub fn set_stream_rpcs_executed(&mut self, v: u64)

Source

pub fn get_stream_rpcs_executed(&self) -> u64

Source

pub fn clear_stream_rpc_rate(&mut self)

Source

pub fn set_stream_rpc_rate(&mut self, v: f32)

Source

pub fn get_stream_rpc_rate(&self) -> f32

Source

pub fn clear_time_per_stream_update(&mut self)

Source

pub fn set_time_per_stream_update(&mut self, v: f32)

Source

pub fn get_time_per_stream_update(&self) -> f32

Trait Implementations§

Source§

impl Clear for Status

Source§

fn clear(&mut self)

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Status

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Status

Source§

fn default() -> Status

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

impl Message for Status

Source§

impl MessageStatic for Status

Source§

impl PartialEq for Status

Source§

fn eq(&self, other: &Status) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ProtobufValue for Status

Source§

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

Source§

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

Source§

fn is_non_zero(&self) -> bool

Source§

fn as_ref_copy(&self) -> ProtobufValueRef<'static>

Source§

impl StructuralPartialEq for Status

Source§

impl Sync for Status

Auto Trait Implementations§

§

impl !Freeze for Status

§

impl !RefUnwindSafe for Status

§

impl Send for Status

§

impl Unpin for Status

§

impl UnwindSafe for Status

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.