disallow direct access to shared client cancellable

This commit is contained in:
yggverse 2024-12-12 20:04:25 +02:00
parent 325d5505d7
commit e7868a9dcf

View File

@ -9,7 +9,7 @@ use std::cell::RefCell;
/// e.g. session resumption or multi-thread connection management (depending of client type selected) /// e.g. session resumption or multi-thread connection management (depending of client type selected)
pub struct Client { pub struct Client {
// Shared reference to cancel async operations // Shared reference to cancel async operations
pub cancellable: RefCell<Cancellable>, cancellable: RefCell<Cancellable>,
// Clients // Clients
pub gemini: gemini::Client, pub gemini: gemini::Client,
// other clients.. // other clients..