Struct iotdb_client::client::common::TTimedQuota
source · pub struct TTimedQuota {
pub time_unit: i64,
pub soft_limit: i64,
}
Fields§
§time_unit: i64
§soft_limit: i64
Implementations§
source§impl TTimedQuota
impl TTimedQuota
pub fn new(time_unit: i64, soft_limit: i64) -> TTimedQuota
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol ) -> Result<TTimedQuota>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol ) -> Result<()>
Trait Implementations§
source§impl Clone for TTimedQuota
impl Clone for TTimedQuota
source§fn clone(&self) -> TTimedQuota
fn clone(&self) -> TTimedQuota
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 TTimedQuota
impl Debug for TTimedQuota
source§impl Hash for TTimedQuota
impl Hash for TTimedQuota
source§impl Ord for TTimedQuota
impl Ord for TTimedQuota
source§fn cmp(&self, other: &TTimedQuota) -> Ordering
fn cmp(&self, other: &TTimedQuota) -> 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 TTimedQuota
impl PartialEq for TTimedQuota
source§fn eq(&self, other: &TTimedQuota) -> bool
fn eq(&self, other: &TTimedQuota) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TTimedQuota
impl PartialOrd for TTimedQuota
source§fn partial_cmp(&self, other: &TTimedQuota) -> Option<Ordering>
fn partial_cmp(&self, other: &TTimedQuota) -> 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 TTimedQuota
impl StructuralPartialEq for TTimedQuota
Auto Trait Implementations§
impl Freeze for TTimedQuota
impl RefUnwindSafe for TTimedQuota
impl Send for TTimedQuota
impl Sync for TTimedQuota
impl Unpin for TTimedQuota
impl UnwindSafe for TTimedQuota
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