pub enum HostNotification {
Ping(EmptyStruct),
Initialize {
plugin_id: PluginPid,
buffer_info: Vec<PluginBufferInfo>,
},
DidSave {
view_id: ViewId,
path: PathBuf,
},
ConfigChanged {
view_id: ViewId,
changes: Table,
},
NewBuffer {
buffer_info: Vec<PluginBufferInfo>,
},
DidClose {
view_id: ViewId,
},
GetHover {
view_id: ViewId,
request_id: usize,
position: usize,
},
Shutdown(EmptyStruct),
TracingConfig {
enabled: bool,
},
LanguageChanged {
view_id: ViewId,
new_lang: LanguageId,
},
CustomCommand {
view_id: ViewId,
method: String,
params: Value,
},
}
Expand description
RPC Notifications sent from the host
Variants§
Ping(EmptyStruct)
Initialize
DidSave
ConfigChanged
NewBuffer
Fields
§
buffer_info: Vec<PluginBufferInfo>
DidClose
GetHover
Shutdown(EmptyStruct)
TracingConfig
LanguageChanged
CustomCommand
Trait Implementations§
Source§impl Clone for HostNotification
impl Clone for HostNotification
Source§fn clone(&self) -> HostNotification
fn clone(&self) -> HostNotification
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 HostNotification
impl Debug for HostNotification
Source§impl<'de> Deserialize<'de> for HostNotification
impl<'de> Deserialize<'de> for HostNotification
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 HostNotification
impl RefUnwindSafe for HostNotification
impl Send for HostNotification
impl Sync for HostNotification
impl Unpin for HostNotification
impl UnwindSafe for HostNotification
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