pub struct ExtensionClient { /* private fields */ }
Implementations§
Source§impl ExtensionClient
impl ExtensionClient
pub fn new( extension_id: &str, name: &str, sender: AsyncSender<Messages>, settings_path: Option<PathBuf>, ) -> Self
pub fn get_id(&mut self) -> String
pub async fn send(&self, message: Messages) -> Result<(), SendError<Messages>>
pub async fn register_language_server( &self, state_id: u8, languages: HashMap<String, LanguageServer>, ) -> Result<(), SendError<Messages>>
pub async fn get_settings(&self) -> Option<ExtensionSettings>
Trait Implementations§
Source§impl Clone for ExtensionClient
impl Clone for ExtensionClient
Source§fn clone(&self) -> ExtensionClient
fn clone(&self) -> ExtensionClient
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 ExtensionClient
impl RefUnwindSafe for ExtensionClient
impl Send for ExtensionClient
impl Sync for ExtensionClient
impl Unpin for ExtensionClient
impl UnwindSafe for ExtensionClient
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