#[non_exhaustive]pub enum WorktreeOrigin {
Created,
Attached,
Unknown(String),
}Expand description
Where a session’s worktree came from: created means the host
allocated it for the session, attached means the host bound a
caller-provided worktree.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Created
The host allocated this worktree for the session.
Attached
The host validated and bound a caller-provided worktree.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeOrigin
impl Clone for WorktreeOrigin
Source§impl Debug for WorktreeOrigin
impl Debug for WorktreeOrigin
Source§impl<'de> Deserialize<'de> for WorktreeOrigin
impl<'de> Deserialize<'de> for WorktreeOrigin
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorktreeOrigin
Source§impl PartialEq for WorktreeOrigin
impl PartialEq for WorktreeOrigin
Source§impl Serialize for WorktreeOrigin
impl Serialize for WorktreeOrigin
impl StructuralPartialEq for WorktreeOrigin
Auto Trait Implementations§
impl Freeze for WorktreeOrigin
impl RefUnwindSafe for WorktreeOrigin
impl Send for WorktreeOrigin
impl Sync for WorktreeOrigin
impl Unpin for WorktreeOrigin
impl UnsafeUnpin for WorktreeOrigin
impl UnwindSafe for WorktreeOrigin
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