RPC: Make Session objects get a GlobalId.

This commit is contained in:
Nick Mathewson 2023-05-30 11:48:07 -04:00
parent 9f51bcb0be
commit 3a93c94f4b
1 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,13 @@ pub(crate) struct Session {
#[allow(unused)]
client: Arc<dyn rpc::Object>,
}
impl rpc::Object for Session {}
impl rpc::Object for Session {
fn expose_outside_of_session(&self) -> bool {
// A session object can bue used to open a connection to its underlying
// client, so it needs to be exported.
true
}
}
rpc::decl_object! {Session}
impl Session {