Skip to main content

Call

Enum Call 

Source
pub enum Call {
Show 24 variants Repository { worktree: Worktree, }, Commit { worktree: Worktree, oid: String, cursor: Option<u64>, }, FilteredHistory { worktree: Worktree, refs: Vec<String>, cursor: Option<String>, filter: HistoryFilter, }, LeaseObserve { owner: LeaseOwner, }, FileResolve { root: File, purpose: ResolvePurpose, }, TerminalOpen { lease_id: String, session_id: String, directory_base64: String, shell_base64: String, columns: u16, rows: u16, }, TerminalAttach { lease_id: String, session_id: String, last_output_sequence: u64, }, TerminalInput { lease_id: String, session_id: String, }, TerminalResize { lease_id: String, session_id: String, columns: u16, rows: u16, }, TerminalEnd { lease_id: String, session_id: String, intent: EndIntent, }, List { file: File, }, PathVersion { file: File, }, Watch { file: File, }, Search { request: Search, }, FileMutate { file: File, expected: Option<WireVersion>, command: FileCommand, }, Discover { file: File, }, Contains { worktree: Worktree, file: File, }, GitRead { worktree: Worktree, query: GitRead, }, Status { worktree: Worktree, }, Diff { worktree: Worktree, path_base64: String, source: DiffSource, }, History { worktree: Worktree, refs: Vec<String>, cursor: Option<String>, }, GitMutate { worktree: Worktree, expected: GitState, command: GitCommand, }, GitExisting { worktree: Worktree, expected: GitState, command: GitCommand, }, Inspect,
}

Variants§

§

Repository

Fields

§worktree: Worktree
§

Commit

Fields

§worktree: Worktree
§cursor: Option<u64>
§

FilteredHistory

Fields

§worktree: Worktree
§refs: Vec<String>
§cursor: Option<String>
§

LeaseObserve

Fields

§

FileResolve

Fields

§root: File
§

TerminalOpen

Fields

§lease_id: String
§session_id: String
§directory_base64: String
§shell_base64: String
§columns: u16
§rows: u16
§

TerminalAttach

Fields

§lease_id: String
§session_id: String
§last_output_sequence: u64
§

TerminalInput

Fields

§lease_id: String
§session_id: String
§

TerminalResize

Fields

§lease_id: String
§session_id: String
§columns: u16
§rows: u16
§

TerminalEnd

Fields

§lease_id: String
§session_id: String
§intent: EndIntent
§

List

Fields

§file: File
§

PathVersion

Fields

§file: File
§

Watch

Fields

§file: File
§

Search

Fields

§request: Search
§

FileMutate

Fields

§file: File
§command: FileCommand
§

Discover

Fields

§file: File
§

Contains

Fields

§worktree: Worktree
§file: File
§

GitRead

Fields

§worktree: Worktree
§query: GitRead
§

Status

Fields

§worktree: Worktree
§

Diff

Fields

§worktree: Worktree
§path_base64: String
§source: DiffSource
§

History

Fields

§worktree: Worktree
§refs: Vec<String>
§cursor: Option<String>
§

GitMutate

Fields

§worktree: Worktree
§expected: GitState
§command: GitCommand
§

GitExisting

Fields

§worktree: Worktree
§expected: GitState
§command: GitCommand
§

Inspect

Implementations§

Source§

impl Call

Source

pub fn requires_repository(&self) -> bool

Source

pub fn terminal_lease(&self) -> Option<&str>

Source

pub fn effectful(&self) -> bool

Source

pub fn unprepared_worktree_mutation(&self) -> bool

Source

pub fn mutating(&self) -> bool

Trait Implementations§

Source§

impl Clone for Call

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Call

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Call

Source§

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 Eq for Call

Source§

impl PartialEq for Call

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Call

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Call

Auto Trait Implementations§

§

impl Forget for Call

§

impl Freeze for Call

§

impl RefUnwindSafe for Call

§

impl Send for Call

§

impl Sync for Call

§

impl Unpin for Call

§

impl UnsafeUnpin for Call

§

impl UnwindSafe for Call

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.