pub struct Waiting {
pub policy_id: String,
pub target: String,
pub profile: String,
pub since: Option<DateTime<Utc>>,
pub at: Option<DateTime<Utc>>,
pub free_bytes: u64,
pub reserved_bytes: u64,
pub estimate_bytes: u64,
pub estimate_source: String,
pub margin_bytes: u64,
}Expand description
One profile waiting for memory, as status shows it.
Fields§
§policy_id: String§target: Stringrepo:owner/name or org:login, as status names targets.
profile: String§since: Option<DateTime<Utc>>The first refusal of this wait, and the latest.
at: Option<DateTime<Utc>>§free_bytes: u64§reserved_bytes: u64§estimate_bytes: u64§estimate_source: Stringcoordinator, local or default.
margin_bytes: u64Implementations§
Source§impl Waiting
impl Waiting
Sourcepub fn new(
(policy_id, target, profile): (String, String, String),
figures: &MemoryFigures,
since: DateTime<Utc>,
at: DateTime<Utc>,
) -> Self
pub fn new( (policy_id, target, profile): (String, String, String), figures: &MemoryFigures, since: DateTime<Utc>, at: DateTime<Utc>, ) -> Self
A wait recorded at at from figures.
Sourcepub const fn needed_bytes(&self) -> u64
pub const fn needed_bytes(&self) -> u64
What a start needs available: the estimate and the margin.
Sourcepub const fn available_bytes(&self) -> u64
pub const fn available_bytes(&self) -> u64
What a start can count on: free memory less the reservations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Waiting
impl<'de> Deserialize<'de> for Waiting
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 Waiting
impl StructuralPartialEq for Waiting
Auto Trait Implementations§
impl Forget for Waiting
impl Freeze for Waiting
impl Move for Waiting
impl RefUnwindSafe for Waiting
impl Send for Waiting
impl Sync for Waiting
impl Unpin for Waiting
impl UnsafeUnpin for Waiting
impl UnwindSafe for Waiting
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