pub struct CoreRpcHandler { /* private fields */ }
Implementations§
Source§impl CoreRpcHandler
impl CoreRpcHandler
pub fn new() -> Self
pub fn mainloop<H>(&self, handler: &mut H)where
H: CoreHandler,
pub fn rx(&self) -> &Receiver<CoreRpc>
pub fn handle_response( &self, id: RequestId, response: Result<CoreResponse, RpcError>, )
pub fn request(&self, request: CoreRequest) -> Result<CoreResponse, RpcError>
pub fn shutdown(&self)
pub fn notification(&self, notification: CoreNotification)
pub fn proxy_connected(&self)
pub fn workspace_file_change(&self)
pub fn diff_info(&self, diff: DiffInfo)
pub fn open_file_changed(&self, path: PathBuf, content: String)
pub fn completion_response( &self, request_id: usize, input: String, resp: CompletionResponse, plugin_id: PluginId, )
pub fn volt_installed(&self, volt: VoltMetadata, only_installing: bool)
pub fn volt_installing(&self, volt: VoltMetadata, error: String)
pub fn volt_removing(&self, volt: VoltMetadata, error: String)
pub fn volt_removed(&self, volt: VoltInfo, only_installing: bool)
pub fn log(&self, level: Level, message: String)
pub fn publish_diagnostics(&self, diagnostics: PublishDiagnosticsParams)
pub fn work_done_progress(&self, progress: ProgressParams)
pub fn show_message(&self, title: String, message: ShowMessageParams)
pub fn log_message(&self, message: LogMessageParams)
pub fn close_terminal(&self, term_id: TermId)
pub fn update_terminal(&self, term_id: TermId, content: String)
Trait Implementations§
Source§impl Clone for CoreRpcHandler
impl Clone for CoreRpcHandler
Source§fn clone(&self) -> CoreRpcHandler
fn clone(&self) -> CoreRpcHandler
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 moreAuto Trait Implementations§
impl Freeze for CoreRpcHandler
impl !RefUnwindSafe for CoreRpcHandler
impl Send for CoreRpcHandler
impl Sync for CoreRpcHandler
impl Unpin for CoreRpcHandler
impl !UnwindSafe for CoreRpcHandler
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