mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-03 15:04:13 +00:00
add comments
This commit is contained in:
parent
b948342ebf
commit
d3d85e3672
@ -43,7 +43,7 @@ impl Client {
|
|||||||
Self {
|
Self {
|
||||||
cancellable: Cell::new(Cancellable::new()),
|
cancellable: Cell::new(Cancellable::new()),
|
||||||
redirect: Rc::new(Redirect::new()),
|
redirect: Rc::new(Redirect::new()),
|
||||||
status: Rc::new(RefCell::new(Status::Cancellable)),
|
status: Rc::new(RefCell::new(Status::Cancellable)), // e.g. "ready to use"
|
||||||
gemini: gemini::Client::new(),
|
gemini: gemini::Client::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,6 +66,10 @@ impl Client {
|
|||||||
cancellable
|
cancellable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
|
||||||
|
/// Begin new request
|
||||||
|
/// * the `query` as string, to support system routing requests (e.g. `source:`)
|
||||||
pub fn request(&self, query: &str) {
|
pub fn request(&self, query: &str) {
|
||||||
self.status.replace(Status::Request(query.to_string()));
|
self.status.replace(Status::Request(query.to_string()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user