pub struct ProcessPluginCommunicator { /* private fields */ }
Expand description
Communicates with a process plugin.
Implementations§
Source§impl ProcessPluginCommunicator
impl ProcessPluginCommunicator
pub async fn new( executable_file_path: &Path, on_std_err: impl Fn(String) + Clone + Send + Sync + 'static, ) -> Result<Self>
Sourcepub async fn new_with_init(
executable_file_path: &Path,
on_std_err: impl Fn(String) + Clone + Send + Sync + 'static,
) -> Result<Self>
pub async fn new_with_init( executable_file_path: &Path, on_std_err: impl Fn(String) + Clone + Send + Sync + 'static, ) -> Result<Self>
Provides the --init
CLI flag to tell the process plugin to do any initialization necessary
pub fn kill(&self)
pub async fn register_config( &self, config_id: FormatConfigId, global_config: &GlobalConfiguration, plugin_config: &ConfigKeyMap, ) -> Result<()>
pub async fn release_config(&self, config_id: FormatConfigId) -> Result<()>
pub async fn ask_is_alive(&self) -> bool
pub async fn plugin_info(&self) -> Result<PluginInfo>
pub async fn license_text(&self) -> Result<String>
pub async fn resolved_config(&self, config_id: FormatConfigId) -> Result<String>
pub async fn file_matching_info( &self, config_id: FormatConfigId, ) -> Result<FileMatchingInfo>
pub async fn config_diagnostics( &self, config_id: FormatConfigId, ) -> Result<Vec<ConfigurationDiagnostic>>
pub async fn check_config_updates( &self, message: &CheckConfigUpdatesMessage, ) -> Result<Vec<ConfigChange>>
pub async fn format_text( &self, request: ProcessPluginCommunicatorFormatRequest, ) -> FormatResult
Sourcepub async fn is_process_alive(&self) -> bool
pub async fn is_process_alive(&self) -> bool
Checks if the process is functioning.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProcessPluginCommunicator
impl !RefUnwindSafe for ProcessPluginCommunicator
impl !Send for ProcessPluginCommunicator
impl !Sync for ProcessPluginCommunicator
impl Unpin for ProcessPluginCommunicator
impl !UnwindSafe for ProcessPluginCommunicator
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