pub enum SessionType {
Polecat,
Crew,
}Expand description
Session type: polecat (isolated worktree) or crew (shared).
Variants§
Polecat
Isolated worktree session managed by the Witness role.
Crew
Shared session for user-driven work.
Implementations§
Source§impl SessionType
impl SessionType
Sourcepub fn from_label(label: &str) -> Option<Self>
pub fn from_label(label: &str) -> Option<Self>
Parse from label string.
Trait Implementations§
Source§impl Clone for SessionType
impl Clone for SessionType
Source§fn clone(&self) -> SessionType
fn clone(&self) -> SessionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionType
impl Debug for SessionType
Source§impl Default for SessionType
impl Default for SessionType
Source§impl<'de> Deserialize<'de> for SessionType
impl<'de> Deserialize<'de> for SessionType
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
Source§impl Display for SessionType
impl Display for SessionType
Source§impl Hash for SessionType
impl Hash for SessionType
Source§impl PartialEq for SessionType
impl PartialEq for SessionType
Source§impl Serialize for SessionType
impl Serialize for SessionType
impl Copy for SessionType
impl Eq for SessionType
impl StructuralPartialEq for SessionType
Auto Trait Implementations§
impl Freeze for SessionType
impl RefUnwindSafe for SessionType
impl Send for SessionType
impl Sync for SessionType
impl Unpin for SessionType
impl UnwindSafe for SessionType
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