[Yunq] Allow creating a client cap.
This commit is contained in:
parent
52f530f8c1
commit
f551cc88cd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue