#[non_exhaustive]pub struct ApplyResult {
pub changed_nodes: Vec<NodeId>,
pub diagnostics: Vec<Diagnostic>,
pub requires_reload: bool,
}Expand description
Outcome of a successful apply.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changed_nodes: Vec<NodeId>Node IDs whose content (or position) changed.
diagnostics: Vec<Diagnostic>Issues surfaced by applying the command (validation during apply may add diagnostics — e.g. a new rule pointing at a missing file).
requires_reload: booltrue iff the server should reload to see this change. An edit
that changes the listener port needs a restart, not just a
reload — see Workspace::save for the richer ReloadHint.
Trait Implementations§
Source§impl Clone for ApplyResult
impl Clone for ApplyResult
Source§fn clone(&self) -> ApplyResult
fn clone(&self) -> ApplyResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplyResult
impl Debug for ApplyResult
Auto Trait Implementations§
impl Freeze for ApplyResult
impl RefUnwindSafe for ApplyResult
impl Send for ApplyResult
impl Sync for ApplyResult
impl Unpin for ApplyResult
impl UnsafeUnpin for ApplyResult
impl UnwindSafe for ApplyResult
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