pub enum ShellKey {
Display {
origin: DocumentId,
revision: BufferRevision,
focus: WorkerId,
},
Pipe {
document: DocumentId,
revision: BufferRevision,
start: usize,
end: usize,
},
}Expand description
Which surface owns a shell request, captured at registration and never re-derived from current editor state at delivery.
Variants§
Display
:!cmd: an output request for the document that ran it. The
focus token is the request itself — only the newest display
request may still switch the view when it lands.
Pipe
|cmd: replace [start, end) of a document captured at a
revision. The range is already normalized, clamped and
boundary-checked — delivery validates exactly what was
captured, not re-derived arguments.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShellKey
impl<'de> Deserialize<'de> for ShellKey
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 ShellKey
impl StructuralPartialEq for ShellKey
Auto Trait Implementations§
impl Freeze for ShellKey
impl RefUnwindSafe for ShellKey
impl Send for ShellKey
impl Sync for ShellKey
impl Unpin for ShellKey
impl UnsafeUnpin for ShellKey
impl UnwindSafe for ShellKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.