pub struct CuSnapshot {
pub url: String,
pub consumed: u64,
pub budget: u64,
pub usage_fraction: f64,
pub alert: bool,
pub exhausted: bool,
pub per_method: HashMap<String, u64>,
}Expand description
Immutable snapshot of CU tracking state.
Fields§
§url: String§consumed: u64§budget: u64§usage_fraction: f64§alert: bool§exhausted: bool§per_method: HashMap<String, u64>Trait Implementations§
Source§impl Clone for CuSnapshot
impl Clone for CuSnapshot
Source§fn clone(&self) -> CuSnapshot
fn clone(&self) -> CuSnapshot
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 CuSnapshot
impl Debug for CuSnapshot
Auto Trait Implementations§
impl Freeze for CuSnapshot
impl RefUnwindSafe for CuSnapshot
impl Send for CuSnapshot
impl Sync for CuSnapshot
impl Unpin for CuSnapshot
impl UnsafeUnpin for CuSnapshot
impl UnwindSafe for CuSnapshot
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