pub enum InboundKind {
OpenFile {
path: PathBuf,
column: Option<Utf16Pos>,
},
SaveDocument {
path: PathBuf,
},
CloseTab {
origin_session: u64,
tab_name: String,
},
CloseAllDiffTabs {
origin_session: u64,
},
}Expand description
A write request’s payload.
Variants§
OpenFile
Open path. column (a UTF-16 cursor position from the agent’s
selection.start, None when absent) is carried unconverted — the host
resolves it to a byte offset against the opened line. BC.8c follow-up:
maps to the HOST-APPLIED OpenBufferAtColumn, not the peer-applied
OpenBufferAt (which the inbound tick path discards, so openFile never
actually opened before this fix).
SaveDocument
Save the document for path (option C: only when it’s the active buffer).
CloseTab
D-fix.6: close the tab from connection origin_session. Maps to the
host-applied [Effect::CloseSessionDiffs] — the host rejects that
connection’s programmatic diff session(s) (presentation-agnostic; keyed
on origin_session, NOT tab_name), falling back to the legacy
active-buffer file-close only when tab_name matches the active path
and no diff was torn down.
CloseAllDiffTabs
D-fix.6: closeAllDiffTabs from connection origin_session — reject
every programmatic diff that connection opened. Maps to
[Effect::CloseAllSessionDiffs].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InboundKind
impl RefUnwindSafe for InboundKind
impl Send for InboundKind
impl Sync for InboundKind
impl Unpin for InboundKind
impl UnsafeUnpin for InboundKind
impl UnwindSafe for InboundKind
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more