pub struct WorkspaceDefault {
pub pool: u32,
pub overflow: Bound,
pub delete: Vec<PathBuf>,
pub maintain: Option<Maintenance>,
}Expand description
A complete workspace policy: every field a rule may set, all of them decided.
Fields§
§pool: u32How many warm slots the identity keeps. 0 is pooling off: every session is cut
fresh, exactly as a host with no file opens one.
overflow: BoundHow many sessions the identity admits past its pool, each cut fresh under
runs/. unlimited never refuses an open.
delete: Vec<PathBuf>Worktree-relative paths deleted on every return: state that would otherwise leak from one session into the next. An absent path is nothing to delete.
maintain: Option<Maintenance>What maintenance of an idle slot is, for the verb that performs it. Absent, no maintenance is ever run.
Trait Implementations§
Source§impl Clone for WorkspaceDefault
impl Clone for WorkspaceDefault
Source§impl Debug for WorkspaceDefault
impl Debug for WorkspaceDefault
Source§impl Default for WorkspaceDefault
impl Default for WorkspaceDefault
Source§impl<'de> Deserialize<'de> for WorkspaceDefault
impl<'de> Deserialize<'de> for WorkspaceDefault
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 WorkspaceDefault
Source§impl PartialEq for WorkspaceDefault
impl PartialEq for WorkspaceDefault
Source§impl Serialize for WorkspaceDefault
impl Serialize for WorkspaceDefault
impl StructuralPartialEq for WorkspaceDefault
Auto Trait Implementations§
impl Freeze for WorkspaceDefault
impl RefUnwindSafe for WorkspaceDefault
impl Send for WorkspaceDefault
impl Sync for WorkspaceDefault
impl Unpin for WorkspaceDefault
impl UnsafeUnpin for WorkspaceDefault
impl UnwindSafe for WorkspaceDefault
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
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
Compare self to
key and return true if they are equal.