pub enum HostOutcome {
Applied {
edits: Vec<AppliedEdit>,
changed: bool,
},
Target(ResolvedRange),
RememberedTarget {
range: ResolvedRange,
replay: TargetRequest,
},
Rejected,
}Expand description
The outcome observed by the host when it executes an operation.
Variants§
Applied
Acknowledge an accepted edit, cursor move or history command.
Fields
§
edits: Vec<AppliedEdit>Actual changes in original-document order. A move can leave this empty.
Target(ResolvedRange)
Return ranges resolved against the requested document revision.
RememberedTarget
Remember a host-resolved search or syntax target for dot. The host retains the query and resolves it at the new cursor when requested.
Fields
§
range: ResolvedRangeTarget to apply in the current revision.
§
replay: TargetRequestRequest to resolve afresh when dot repeats the command.
Rejected
Decline the operation and cancel its pending replay.
Trait Implementations§
Source§impl Clone for HostOutcome
impl Clone for HostOutcome
Source§impl Debug for HostOutcome
impl Debug for HostOutcome
impl Eq for HostOutcome
Source§impl PartialEq for HostOutcome
impl PartialEq for HostOutcome
impl StructuralPartialEq for HostOutcome
Auto Trait Implementations§
impl Freeze for HostOutcome
impl RefUnwindSafe for HostOutcome
impl Send for HostOutcome
impl Sync for HostOutcome
impl Unpin for HostOutcome
impl UnsafeUnpin for HostOutcome
impl UnwindSafe for HostOutcome
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