mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-30 04:54:15 +00:00
add comment wrap client object in Rc
This commit is contained in:
parent
a59c66a8e6
commit
6f4bc64689
@ -24,7 +24,9 @@ pub struct Driver {
|
|||||||
/// Redirect resolver for different protocols
|
/// Redirect resolver for different protocols
|
||||||
redirect: Rc<Redirect>,
|
redirect: Rc<Redirect>,
|
||||||
/// Supported clients
|
/// Supported clients
|
||||||
gemini: ggemini::Client,
|
/// * gemini driver should be initiated once (on page object init)
|
||||||
|
/// to process all it connection features properly
|
||||||
|
gemini: Rc<ggemini::Client>,
|
||||||
// other clients here..
|
// other clients here..
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -34,7 +36,7 @@ impl Driver {
|
|||||||
/// Init new `Self`
|
/// Init new `Self`
|
||||||
pub fn init(profile: &Rc<Profile>, callback: impl Fn(Status) + 'static) -> Self {
|
pub fn init(profile: &Rc<Profile>, callback: impl Fn(Status) + 'static) -> Self {
|
||||||
// Init supported protocol libraries
|
// Init supported protocol libraries
|
||||||
let gemini = ggemini::Client::new();
|
let gemini = Rc::new(ggemini::Client::new());
|
||||||
|
|
||||||
// Translate driver status to `Status`
|
// Translate driver status to `Status`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user