[Yunq] Allow creating a client cap.

This commit is contained in:
Drew Galbraith 2024-08-17 20:18:25 -07:00
parent 52f530f8c1
commit f551cc88cd
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ pub trait YunqServer {
}
fn endpoint_cap(&self) -> &Capability;
fn create_client_cap(&self) -> Result<Capability, ZError> {
self.endpoint_cap()
.duplicate(!mammoth::zion::kZionPerm_Read)
}
fn handle_request(
&self,
method_number: u64,