pub struct SizingHold {
pub profile: String,
pub changed: u64,
pub until: u64,
pub lower_until: u64,
}Expand description
A profile auto sizing changes nothing in before until, and lowers nothing in before lower_until.
Fields§
§profile: StringThe profile.
changed: u64When its last change was made.
until: u64When it may be raised again, in seconds since the Unix epoch.
lower_until: u64When it may be lowered again; 0 from a daemon before it said, which held every change until until.
Implementations§
Source§impl SizingHold
impl SizingHold
Sourcepub fn lowered_after(&self) -> u64
pub fn lowered_after(&self) -> u64
When it may be lowered again.
Trait Implementations§
Source§impl Clone for SizingHold
impl Clone for SizingHold
Source§impl Debug for SizingHold
impl Debug for SizingHold
Source§impl<'de> Deserialize<'de> for SizingHold
impl<'de> Deserialize<'de> for SizingHold
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SizingHold
Source§impl PartialEq for SizingHold
impl PartialEq for SizingHold
Source§impl Serialize for SizingHold
impl Serialize for SizingHold
impl StructuralPartialEq for SizingHold
Auto Trait Implementations§
impl Freeze for SizingHold
impl RefUnwindSafe for SizingHold
impl Send for SizingHold
impl Sync for SizingHold
impl Unpin for SizingHold
impl UnsafeUnpin for SizingHold
impl UnwindSafe for SizingHold
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.