pub struct WorkspaceCapacity {
pub identity: String,
pub pool: u32,
pub slots: u32,
pub idle: u32,
pub in_use: u32,
pub maintaining: u32,
pub overflow: Bound,
pub overflow_in_use: u32,
pub admits: Bound,
pub admitted: bool,
}Expand description
How many sessions one identity can admit right now, and whether one request would be placed.
Advisory: it reads the same records open reads and applies the request’s overrides
over the same layering, and open is what decides. admitted is true for a request
whose pinned branch an open session already holds, because that open resumes in
place and places nothing.
Fields§
§identity: StringThe identity key.
pool: u32The pool size the request resolves to.
slots: u32How many slots exist, whatever their state.
idle: u32How many of them are idle. A broken slot is neither this nor in use — slots
exceeds the three counts by the broken ones — and a session still takes it,
recreating it in place, which admits and admitted count.
in_use: u32How many an open session names.
maintaining: u32How many a live maintenance run claims.
overflow: BoundThe overflow bound the request resolves to.
overflow_in_use: u32How many sessions of the identity are open under runs/, which is what the
overflow bound counts.
admits: BoundHow many more opens the identity admits now, across its slots and its overflow.
admitted: boolWhether this request would be placed now.
Trait Implementations§
Source§impl Clone for WorkspaceCapacity
impl Clone for WorkspaceCapacity
Source§impl Debug for WorkspaceCapacity
impl Debug for WorkspaceCapacity
Source§impl<'de> Deserialize<'de> for WorkspaceCapacity
impl<'de> Deserialize<'de> for WorkspaceCapacity
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>,
impl Eq for WorkspaceCapacity
Source§impl PartialEq for WorkspaceCapacity
impl PartialEq for WorkspaceCapacity
Source§impl Serialize for WorkspaceCapacity
impl Serialize for WorkspaceCapacity
impl StructuralPartialEq for WorkspaceCapacity
Auto Trait Implementations§
impl Freeze for WorkspaceCapacity
impl RefUnwindSafe for WorkspaceCapacity
impl Send for WorkspaceCapacity
impl Sync for WorkspaceCapacity
impl Unpin for WorkspaceCapacity
impl UnsafeUnpin for WorkspaceCapacity
impl UnwindSafe for WorkspaceCapacity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.