RPC: Make Session objects get a GlobalId.
This commit is contained in:
parent
9f51bcb0be
commit
3a93c94f4b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue