Struct xrl::Client
[−]
[src]
pub struct Client(pub Client);
A client to send notifications and request to the core
Methods
impl Client
[src]
fn notify(&mut self, method: &str, params: Value) -> ClientResult<()>
[src]
Send a notification to the core. Most (if not all) notifications supported by the core are already implemented, so this method should not be necessary in most cases.
fn request(&mut self, method: &str, params: Value) -> ClientResult<Value>
[src]
Send a request to the core. Most (if not all) notifications supported by the core are already implemented, so this method should not be necessary in most cases.
fn scroll(
&mut self,
view_id: &str,
first_line: u64,
last_line: u64
) -> ClientResult<()>
[src]
&mut self,
view_id: &str,
first_line: u64,
last_line: u64
) -> ClientResult<()>
Send an "scroll" notification
{"method":"edit","params":{"method":"scroll","params":[21,80],"view_id":"view-id-1"}}
fn left(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn left_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn right(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn right_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn up(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn up_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn down(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn down_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn del(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn page_up(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn page_up_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn page_down(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn page_down_sel(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn insert_newline(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn f1(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn f2(&mut self, view_id: &str) -> ClientResult<()>
[src]
fn char(&mut self, view_id: &str, ch: char) -> ClientResult<()>
[src]
fn click(&mut self, view_id: &str, line: u64, column: u64) -> ClientResult<()>
[src]
fn drag(&mut self, view_id: &str, line: u64, column: u64) -> ClientResult<()>
[src]
fn new_view(&mut self, file_path: Option<String>) -> ClientResult<String>
[src]
send a "new_view"
request to the core.
{"id":1,"method":"new_view","params":{"file_path":"foo/test.txt"}}
fn close_view(&mut self, view_id: &str) -> ClientResult<()>
[src]
send a "close_view"
notifycation to the core.
fn save(&mut self, view_id: &str, file_path: &str) -> ClientResult<()>
[src]
fn set_theme(&mut self, theme: &str) -> ClientResult<()>
[src]
fn start_plugin(&mut self, view_id: &str, name: &str) -> ClientResult<()>
[src]
fn stop_plugin(&mut self, view_id: &str, name: &str) -> ClientResult<()>
[src]
fn notify_plugin(
&mut self,
view_id: &str,
plugin: &str,
method: &str,
params: Value
) -> ClientResult<()>
[src]
&mut self,
view_id: &str,
plugin: &str,
method: &str,
params: Value
) -> ClientResult<()>