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§impl PartialOrd for TTimedQuota
impl PartialOrd for TTimedQuota
impl 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