pub struct GetResourceLimitsReturn {
pub ram_bytes: Option<i64>,
pub net_weight: Option<i64>,
pub cpu_weight: Option<i64>,
}Fields§
§ram_bytes: Option<i64>§net_weight: Option<i64>§cpu_weight: Option<i64>Implementations§
Source§impl GetResourceLimitsReturn
impl GetResourceLimitsReturn
pub fn new<F1, F2, F3>( ram_bytes: F1, net_weight: F2, cpu_weight: F3, ) -> GetResourceLimitsReturn
pub fn read_from_in_protocol( i_prot: &mut dyn TInputProtocol, ) -> Result<GetResourceLimitsReturn>
pub fn write_to_out_protocol( &self, o_prot: &mut dyn TOutputProtocol, ) -> Result<()>
Trait Implementations§
Source§impl Clone for GetResourceLimitsReturn
impl Clone for GetResourceLimitsReturn
Source§fn clone(&self) -> GetResourceLimitsReturn
fn clone(&self) -> GetResourceLimitsReturn
Returns a duplicate 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 GetResourceLimitsReturn
impl Debug for GetResourceLimitsReturn
Source§impl Default for GetResourceLimitsReturn
impl Default for GetResourceLimitsReturn
Source§impl Hash for GetResourceLimitsReturn
impl Hash for GetResourceLimitsReturn
Source§impl Ord for GetResourceLimitsReturn
impl Ord for GetResourceLimitsReturn
Source§fn cmp(&self, other: &GetResourceLimitsReturn) -> Ordering
fn cmp(&self, other: &GetResourceLimitsReturn) -> 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 GetResourceLimitsReturn
impl PartialEq for GetResourceLimitsReturn
Source§impl PartialOrd for GetResourceLimitsReturn
impl PartialOrd for GetResourceLimitsReturn
impl Eq for GetResourceLimitsReturn
impl StructuralPartialEq for GetResourceLimitsReturn
Auto Trait Implementations§
impl Freeze for GetResourceLimitsReturn
impl RefUnwindSafe for GetResourceLimitsReturn
impl Send for GetResourceLimitsReturn
impl Sync for GetResourceLimitsReturn
impl Unpin for GetResourceLimitsReturn
impl UnwindSafe for GetResourceLimitsReturn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.