mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
implement session update on certificate change in runtime
This commit is contained in:
parent
f4cb0c3bcc
commit
c4c173f6cf
3 changed files with 113 additions and 36 deletions
|
|
@ -10,9 +10,10 @@ pub use meta::Meta;
|
|||
use super::Connection;
|
||||
use gio::Cancellable;
|
||||
use glib::Priority;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct Response {
|
||||
pub connection: Connection,
|
||||
pub connection: Rc<Connection>,
|
||||
pub meta: Meta,
|
||||
}
|
||||
|
||||
|
|
@ -20,7 +21,7 @@ impl Response {
|
|||
// Constructors
|
||||
|
||||
pub fn from_request_async(
|
||||
connection: Connection,
|
||||
connection: Rc<Connection>,
|
||||
priority: Option<Priority>,
|
||||
cancellable: Option<Cancellable>,
|
||||
callback: impl FnOnce(Result<Self, Error>) + 'static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue