diff --git a/src/app/browser/window/tab/item/page/client/driver.rs b/src/app/browser/window/tab/item/page/client/driver.rs index ea23d20d..c1baa41b 100644 --- a/src/app/browser/window/tab/item/page/client/driver.rs +++ b/src/app/browser/window/tab/item/page/client/driver.rs @@ -29,8 +29,11 @@ pub struct Driver { } impl Driver { + // Constructors + + /// Init new `Self` pub fn init(profile: &Rc, callback: impl Fn(Status) + 'static) -> Self { - // Init protocol driver libraries + // Init supported protocol libraries let gemini = ggemini::Client::new(); // Translate driver status to `Status` @@ -62,6 +65,10 @@ impl Driver { } } + // Actions + + /// Make new async `Feature` request + /// * return shared `Response` as the callback pub fn feature_async( &self, feature: Feature, diff --git a/src/app/browser/window/tab/item/page/client/response.rs b/src/app/browser/window/tab/item/page/client/response.rs index 5cc725ff..58c51d76 100644 --- a/src/app/browser/window/tab/item/page/client/response.rs +++ b/src/app/browser/window/tab/item/page/client/response.rs @@ -2,15 +2,18 @@ pub mod certificate; pub mod failure; pub mod input; +// Local dependencies pub use certificate::Certificate; pub use failure::Failure; pub use input::Input; +// Global dependencies use gtk::{ gio::{Cancellable, IOStream}, glib::{GString, Uri}, }; +/// Single `Client` response API for all protocol drivers pub enum Response { Certificate(Certificate), Download {