pub enum Ownership {
Branch,
Workspace,
Project,
User,
External,
}Expand description
Who owns the concrete instance and what cleanup may touch. Operational, not a security label.
Variants§
Implementations§
Source§impl Ownership
impl Ownership
Sourcepub fn per_branch_teardown_may_touch(self) -> bool
pub fn per_branch_teardown_may_touch(self) -> bool
Whether tearing down one branch instance may touch the concrete
resource. project is shared by the project’s instances and user
is shared beyond it, so per-branch teardown must leave both alone —
this is the conservative half of the ownership table, and the reason
a pnpm store survives newgit remove.
pub fn label(self) -> &'static str
Trait Implementations§
impl Copy for Ownership
Source§impl<'de> Deserialize<'de> for Ownership
impl<'de> Deserialize<'de> for Ownership
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 Ownership
impl StructuralPartialEq for Ownership
Auto Trait Implementations§
impl Freeze for Ownership
impl RefUnwindSafe for Ownership
impl Send for Ownership
impl Sync for Ownership
impl Unpin for Ownership
impl UnsafeUnpin for Ownership
impl UnwindSafe for Ownership
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