pub struct Client { /* private fields */ }Expand description
The Client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(sender: RpcChannel) -> Self
pub fn new(sender: RpcChannel) -> Self
Creates a new Client.
pub fn get_state_by_id( &self, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<Option<StateData>, Errors>>>
pub fn set_state_by_id( &self, state_id: u8, state: StateData, token: String, ) -> impl Future<Output = RpcResult<Result<(), Errors>>>
pub fn read_file_by_path( &self, path: String, filesystem_name: String, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<FileInfo, Errors>>>
pub fn write_file_by_path( &self, path: String, content: String, filesystem_name: String, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<(), Errors>>>
pub fn list_dir_by_path( &self, path: String, filesystem_name: String, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<Vec<DirItemInfo>, Errors>>>
pub fn get_ext_info_by_id( &self, extension_id: String, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<ManifestInfo, Errors>>>
pub fn get_ext_list_by_id( &self, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<Vec<String>, Errors>>>
pub fn get_all_language_servers( &self, state_id: u8, token: String, ) -> impl Future<Output = RpcResult<Result<Vec<LanguageServer>, Errors>>>
pub fn notify_extension( &self, state_id: u8, token: String, message: ExtensionMessages, ) -> impl Future<Output = RpcResult<Result<(), Errors>>>
Trait Implementations§
Source§impl From<RpcChannel> for Client
impl From<RpcChannel> for Client
Source§fn from(channel: RpcChannel) -> Self
fn from(channel: RpcChannel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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