mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
init local browser driver
This commit is contained in:
parent
b56de4b4b5
commit
9e1fb9c5ca
3 changed files with 33 additions and 0 deletions
|
|
@ -1,11 +1,14 @@
|
|||
mod file;
|
||||
mod gemini;
|
||||
|
||||
use super::{Feature, Page};
|
||||
use file::File;
|
||||
use gemini::Gemini;
|
||||
use std::rc::Rc;
|
||||
|
||||
/// Different protocols implementation
|
||||
pub struct Driver {
|
||||
pub file: File,
|
||||
pub gemini: Gemini,
|
||||
}
|
||||
|
||||
|
|
@ -15,6 +18,7 @@ impl Driver {
|
|||
/// Build new `Self`
|
||||
pub fn build(page: &Rc<Page>) -> Self {
|
||||
Driver {
|
||||
file: File::init(page),
|
||||
gemini: Gemini::init(page),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue