pub enum PluginNotification {
AddScopes {
scopes: Vec<Vec<String>>,
},
UpdateSpans {
start: usize,
len: usize,
spans: Vec<ScopeSpan>,
rev: u64,
},
Edit {
edit: PluginEdit,
},
Alert {
msg: String,
},
AddStatusItem {
key: String,
value: String,
alignment: String,
},
UpdateStatusItem {
key: String,
value: String,
},
RemoveStatusItem {
key: String,
},
ShowHover {
request_id: usize,
result: Result<Hover, RemoteError>,
},
UpdateAnnotations {
start: usize,
len: usize,
spans: Vec<DataSpan>,
annotation_type: AnnotationType,
rev: u64,
},
}
Expand description
RPC commands sent from plugins.
Variants§
AddScopes
UpdateSpans
Edit
Fields
§
edit: PluginEdit
Alert
AddStatusItem
UpdateStatusItem
RemoveStatusItem
ShowHover
UpdateAnnotations
Trait Implementations§
Source§impl Clone for PluginNotification
impl Clone for PluginNotification
Source§fn clone(&self) -> PluginNotification
fn clone(&self) -> PluginNotification
Returns a copy 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 PluginNotification
impl Debug for PluginNotification
Source§impl<'de> Deserialize<'de> for PluginNotification
impl<'de> Deserialize<'de> for PluginNotification
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
Auto Trait Implementations§
impl Freeze for PluginNotification
impl RefUnwindSafe for PluginNotification
impl Send for PluginNotification
impl Sync for PluginNotification
impl Unpin for PluginNotification
impl UnwindSafe for PluginNotification
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