Struct iotdb_client::client::common::TNodeResource
source · pub struct TNodeResource {
pub cpu_core_num: i32,
pub max_memory: i64,
}
Fields§
§cpu_core_num: i32
§max_memory: i64
Implementations§
source§impl TNodeResource
impl TNodeResource
pub fn new(cpu_core_num: i32, max_memory: i64) -> TNodeResource
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol ) -> Result<TNodeResource>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol ) -> Result<()>
Trait Implementations§
source§impl Clone for TNodeResource
impl Clone for TNodeResource
source§fn clone(&self) -> TNodeResource
fn clone(&self) -> TNodeResource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TNodeResource
impl Debug for TNodeResource
source§impl Hash for TNodeResource
impl Hash for TNodeResource
source§impl Ord for TNodeResource
impl Ord for TNodeResource
source§fn cmp(&self, other: &TNodeResource) -> Ordering
fn cmp(&self, other: &TNodeResource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TNodeResource
impl PartialEq for TNodeResource
source§fn eq(&self, other: &TNodeResource) -> bool
fn eq(&self, other: &TNodeResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TNodeResource
impl PartialOrd for TNodeResource
source§fn partial_cmp(&self, other: &TNodeResource) -> Option<Ordering>
fn partial_cmp(&self, other: &TNodeResource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TNodeResource
impl StructuralPartialEq for TNodeResource
Auto Trait Implementations§
impl Freeze for TNodeResource
impl RefUnwindSafe for TNodeResource
impl Send for TNodeResource
impl Sync for TNodeResource
impl Unpin for TNodeResource
impl UnwindSafe for TNodeResource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more